1 Star 2 Fork 2

刘彬彬/小知识_自动化任务脚本_DhanushNehru

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README

selenium-twitter-bot

Selenium based solution for creating a twitter bot. Selenium is a very powerful tool for web automation and scraping. For making Twitter bot, one can use Twitter api, but its paid. This solution on the other hand is not but does require much more work to get things right.

Features:

  • Logging into your Twitter account
  • Liking tweets of your homepage
  • Searching for some keyword or hashtag
  • Liking tweets of the search results
  • Posting tweets
  • Logging out of your account

Running project locally:

  1. Have python environment setup
  2. Clone the repo and go to the cloned directory
  3. Run pip3 install selenium
  4. Now you may run any of the given example scripts or write and execute your own scripts

Examples:

All the following tasks are completely automated without any manual user input. The script launches Firefox instance and carrys out the tasks provided.

Posting Tweets

tweet2gif

Adding likes to tweets on homepage

tweet1gif

Adding likes to tweets on search results of some query

tweet3gif

马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/liu_binbin/some_python_scripts.git
git@gitee.com:liu_binbin/some_python_scripts.git
liu_binbin
some_python_scripts
小知识_自动化任务脚本_DhanushNehru
master

搜索帮助