Code Monkey home page Code Monkey logo

block-x-accounts's Introduction

Twitter 账号批量屏蔽

介绍

Twitter 上有很多在热门帖子下面留言诈骗信息的账号,平时刷推突然出现让人非常尴尬。 这个困扰应该没有在英文圈,所以就直接写中文 README 了,不了解这个项目是干什么的就不用看了。

原理

使用 Selenium 模拟浏览器登录 Twitter,然后依次打开 blacklist.py 中列的账号主页,点击屏蔽按钮,最后退出。

使用方法

  1. 安装 Python 3.8+,并安装依赖库:

    pip install -r requirements.txt
  2. 【可选】修改 blacklist.py 文件,添加你想要屏蔽的账号。

  3. 运行 main.py 文件,输入 Twitter 账号和密码,然后等待程序运行完毕。

    python3 main.py

注意事项

  1. 作者私心,在最后加了一个关注 @auxten 的步骤,如果你不想关注,可以在 main.py 中注释掉。
  2. 欢迎大家贡献账号,一起维护这个黑名单。你只需要把账号 ID (浏览器 URL 中的)添加到 blacklist.py 中即可。

需要帮助

  1. 作者没有找到简单的在已有浏览器窗口打开 Twitter 的方法,所以只能劳烦大家在打开的 Chrome 窗口里登录 Twitter。 如果有人知道怎么在已有浏览器窗口打开 Twitter,请告诉我,谢谢!

block-x-accounts's People

Contributors

auxten avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.