Skip to main content

Get Tweets by IDs through Twitter's API

Project description

This application creates the dataset through fetching tweets by their IDs.

There are some policies to avoid tweets content directly. Thus, there are many datasets with just tweets IDs and their labels. Hence, I’ve prepared an application to fetch these tweets context by their IDs using Twitter API. Consequently, you need a Twitter API Token <http://apps.twitter.com>.

In ./dataset directory exists a dataset contains 1.3 million tweets in seven categories label (anger, thankfulness, joy, sadness, fear, love, surprise) by their IDs.

Installation

pip install -r requirements.txt

Configuration

Customize the configuration file (./configuration/configs.py)

Run

python -m tweet_getter.dataset_maker <start-row-optional> <end-row-optional>

[NOTE]:

This package is compatible on Python 3

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tweet_getter-1.0.0rc2.tar.gz (4.1 kB view hashes)

Uploaded Source

Built Distribution

tweet_getter-1.0.0rc2-py2.py3-none-any.whl (5.8 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page