https://github.com/sadiinsosnowfall/twt
Block people on twitter based on their shitty opinions
https://github.com/sadiinsosnowfall/twt
twitter twitter-api twitter-blocker twitter-bot twitter-scraper x-api x-blocker x-client-transaction-id x-scraper
Last synced: 12 months ago
JSON representation
Block people on twitter based on their shitty opinions
- Host: GitHub
- URL: https://github.com/sadiinsosnowfall/twt
- Owner: SadiinsoSnowfall
- License: mit
- Created: 2025-06-10T16:04:14.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-06-29T10:39:35.000Z (12 months ago)
- Last Synced: 2025-06-29T11:31:30.291Z (12 months ago)
- Topics: twitter, twitter-api, twitter-blocker, twitter-bot, twitter-scraper, x-api, x-blocker, x-client-transaction-id, x-scraper
- Language: Python
- Homepage:
- Size: 78.1 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# TWT
Initially based on code from https://github.com/trevorhobenshield/twitter-api-client.
Using https://github.com/iSarabjitDhiman/XClientTransaction.
### Usage :
Either set your twitter cookies in the `LOCAL_COOKIES` variable and update the `FETCH_COOKIES_FROM_BROWSER` variable accordingly, or set the `PREFFERED_BROWSER` and let the script fetch your cookies automatically.
After that:
Blocking every used that has tweeted a specific keyword, hashtag, code ticker, etc...
```
twt.py kw
```
Blocking every followers of a specific user:
```
twt.py fw -n/--name <@handle>
twt.py fw -i/--id
```
For the later, in case of API ratelimit, forced-disconnection, etc... You can resume the operation by running the following command:
```
twt.py fw --continue
```
Information about the last follower-based blocking operation is stored in the local database.
### Misc:
- Blocked users infos are stored in the `storage.db` sqlite3 database.
- May need root/admin privileges to run when fetching cookies from your browser.