Search Tab
Search Tab

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.

credentials.py
credentials.py

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 credentials.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.

Used Software and Libraries

Code