-
pip install aiohttp==3.7.0
-
Install dependencies using commands shown in the github page.
-
Test the installation and Make sure it works finely & all requirements are installed.
twint -u "elonmusk"
-
Once it is installed and works, fix language problem as shown below:
Type "pip show twint" into the command line, follow the path shown at "Location", then open the folder named "twint" and change these lines in the file "url.py":
101 if conif.Lang: 102 q += f" lang:{config.Lang}" 110 if config.Search: 111 q += f" {config.Search}" ```Uncomment line 92: # ('query_source', 'typed_query') -> ('query_source', 'typed_query')
-
Now if you run "ex.py", the scraping will start.
-
Scraping results for each day will be saved separately in json files in folder ./json-files
-
Scraping logs for each day will be saved in folder ./logs
-
Notifications
You must be signed in to change notification settings - Fork 0
ilkhom19/twint_setup
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Twint setup and debug config files of the package. Twint scrapes data from twitter with different filters.
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published