Skip to content

Twint setup and debug config files of the package. Twint scrapes data from twitter with different filters.

Notifications You must be signed in to change notification settings

ilkhom19/twint_setup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 

Repository files navigation

Here is a tutorial to setup Twint & automate processes:

photo_2022-06-10_18-01-22

  1. pip install aiohttp==3.7.0

  2. Install dependencies using commands shown in the github page.

  3. Test the installation and Make sure it works finely & all requirements are installed.

    	twint -u "elonmusk"
    
  4. 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')
    
  5. Now if you run "ex.py", the scraping will start.

  6. Scraping results for each day will be saved separately in json files in folder ./json-files

  7. Scraping logs for each day will be saved in folder ./logs

"ex.py" will create folders "./logs" and "./json-files" itself

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

 
 
 

Languages