微博自动发微博脚本

2,447 阅读1分钟

git仓库地址:github.com/MasakiOvO/w…

weibo-create-new-post

使用 selenium 写成的 自动发微博脚本

安装依赖

需要在国内服务器上运行脚本

pip install -r requirements.txt

在服务器上安装chorme驱动,相关教程: 安装驱动教程

配置

cp config/user.config.example config/user.config

修改config/user.config内的参数

启动脚本

python index.py

微博内容设置

在config/message.txt 默认设置的是一些土味情话。

设置定时任务

我设置的是每天8点发一条微博

00 08 * * * python3 /www/weibo-auto-new-post/index.py

效果

Screenshot_20200630_114104_com.weico.internationa.jpg