Another better project of mine: offline-twitter-cyber-fortune-teller-py
Warning
Do not leak your cookie.json
, this will lead to your Twitter account being stolen.
- This tool can automatically simulate browser operations to crawl all users' tweets and save all static resources (videos, pictures) locally without calling the Twitter API.
- At the same time, sqlite3 is used to save the crawled data as an index file for easy query.
- Install
Python3.10+
- Install
Poetry
- Install
Chrome 119.0+
- Run the command
poetry install
in the directory withpyproject.toml
- Configure
config.yaml
- Change the display language of your Twitter account to English (
More
>Settings and Support
>Account information
>Languages
>Display language
)
- Run the command in the upper-level directory with
pyproject.toml
poetry run python3 -m twitter_user_tweet_crawler
- Log in to Twitter
- Press the Enter key
- Done.