Skip to content

A python application providing a GUI to scrape tweets from Twitter using Tweepy library and scripts allowing cron jobs.

License

Notifications You must be signed in to change notification settings

Wazzabeee/scraping_tool

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twitter Scraping Tool

Python version

About

This program allow the user to retrieve tweets from Twitter's API using the library Tweepy via a GUI or a CRON automatization.

This project was made part of my internship at the "Human Computer Humans Interacting with Computers at University of Primorska" lab (HICUP Lab).

Setup

To use this program, you will need your API keys retrieved after creating a developer account at Twitter.

Once retrieved the keys must be filled as follows.

How to use

# Clone this repository
$ git clone https://github.com/scraping_tool

# Go into the repository
$ cd scraping_tool

# Install requirements
$ pip3 install -r requirements.txt

# Fill credentials in constants.py
# See "Setup"

# Run the app
$ python main.py

Parameter details

More details on the parameters available can be seen on Twitter's offical page.

CRON automatization

After trying out queries and requests with the GUI, you can setup automatizations.

You can define the parameters of the search via the cron_search.json file (or cron_user.json). All parameters are the same from the GUI’s tab.

When you’re ready you just have to setup the execution of the cron_search.py (or cron_user.py) script at the desired times and days.

About

A python application providing a GUI to scrape tweets from Twitter using Tweepy library and scripts allowing cron jobs.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published