Skip to main content

Command-line app for collecting keyword-based Twitter data.

Project description

https://img.shields.io/pypi/pyversions/pytwcla.svg?maxAge=2592000:target:

Pytwcla

A Python command-line application for collecting keyword-based Twitter data.

Tested with Python 2.7 and 3.4.

Installation

Install from PyPI via pip :

pip install pytwcla

Dependencies:

  • Tweepy >= 3.5 (It will be installed automatically)

Setup

Edit api.ini with your Twitter credentials .

pytwcla -h will point you to the location where api.ini has been installed.

Usage

If installation is successful, an executable script should be somewhere in your PATH. Open a command-line and try it out:

pytwcla

REST search (eg. keyword = ‘fintech’):

pytwcla fintech -r

Returns IDs and Dates of Tweets matching the specified keyword and saves them in a SQLite database file named fintech_rest.db.

Stream search (eg. keyword = ‘fintech’):

pytwcla fintech -s

Returns IDs and Dates of relevant Tweets and saves them in fintech_stream.db.

Join REST and Stream search results:

pytwcla fintech -j

Neither the REST nor the Stream search API is meant to be an exhaustive source of Tweets.

Create csv:

pytwcla fintech -c

Creates .csv files with daily keyword counts.

If fintech_rest.db exists it creates fintech_rest.csv.

License

MIT

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

Pytwcla-0.1.5.zip (8.0 kB view details)

Uploaded Source

File details

Details for the file Pytwcla-0.1.5.zip.

File metadata

  • Download URL: Pytwcla-0.1.5.zip
  • Upload date:
  • Size: 8.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for Pytwcla-0.1.5.zip
Algorithm Hash digest
SHA256 0f8ea6a788fe04c25dac907b9a3142217a96e1664e4c9dcf2c9c8f287230ef0e
MD5 7312e86eaeeb956742d8f8f8cb577791
BLAKE2b-256 2d75b0fad1a99751d22d91b24d3880910450a5d5eb0686d4ca59ebebbc13e099

See more details on using hashes here.

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