Skip to main content

Simplifying how researchers access Data. It includes a CLI and a library.

Project description

#Description There are two parts to bitter. First of all, it is a wrapper over Python twitter that adds support for several Twitter API credentials (e.g. authorizing the same app with different user accounts). Secondly, it is a command line tool to automate several actions (e.g. downloading user networks) using the wrapper.

# Instructions

In the command line:

python -m bitter –help

or

bitter –help

Programmatically:

`python from bitter.crawlers import TwitterQueue wq = TwitterQueue.from_credentials() print(wq.users.show(user_name='balkian')) `

# Credentials format

` {"user": "balkian", "consumer_secret": "xxx", "consumer_key": "xxx", "token_key": "xxx", "token_secret": "xxx"} `

By default, bitter uses ‘~/.bitter-credentials.json’, but you may choose a different file:

` python -m bitter -c <credentials_file> ... `

# Server To add more users to the credentials file, you may run the builtin server, with the consumer key and secret of your app:

` python -m bitter server <consumer_key> <consumer_secret> `

# Notice Please, use according to Twitter’s Terms of Service

# TODO

  • Tests

  • Docs

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

bitter-0.4.tar.gz (10.2 kB view hashes)

Uploaded Source

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