Skip to main content

Get tweets from the Twitter Frontend API.

Project description

Twitter Analysis

Twitter's API is annoying to work with, and has lots of limitations —
luckily their frontend (JavaScript) has it's own API, which Kennethreitz reverse–engineered.
No API rate limits. No restrictions. Extremely fast.

You can use this library to get the text of any user's Tweets and use the results for analysis.


.. code-block:: pycon

>>> from twitter_analysis import get_tweets

>>> for tweet in get_tweets('kennethreitz', tweets=100):
>>> print(tweet)
P.S. your API is a user interface
s3monkey just hit 100 github stars! Thanks, y’all!
I’m not sure what this /dev/fd/5 business is, but it’s driving me up the wall.

It appears you can ask for up to 450 tweets reliably (25 html pages).


.. code-block:: shell

$ pipenv install twitter-analysis

Only Python 3.6+ is supported



Project details

Download files

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

Files for twitter-analysis, version 0.0.5
Filename, size File type Python version Upload date Hashes
Filename, size twitter_analysis-0.0.5-py3-none-any.whl (5.2 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size twitter-analysis-0.0.5.tar.gz (4.4 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page