Skip to main content

alt text alt text

PyTweets: Python Twitter Api

Tested with:

  • Python 3.6+

Use the following command to install using pip:

pip install pytweets

Usage example

Use TwitterApp class to start a twitter app

from pytweets import TwitterApp

app = TwitterApp(
    api_key='YOUR_API_KEY', 
    api_secret_key='YOUR_API_SECRET_KEY',
    app_name='YOUR_APP_NAME',
    bearer_token='YOUR_BEARER_TOKEN'
)

app.standard_search_tweets(keywords=['twitter', 'app'])  # search tweets which include 'twitter' and 'app'

user_info = app.get_user_by_username(username='jack')  # get user info for Jack Dorsey

app.get_user_statuses_timeline(user_id=user_info.user_id, count=500)   # retrieve latest 500 tweets of user

Metadata

Release files for pytweets 0.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pytweets 0.2
File Size Uploaded Provenance
pytweets-0.2.tar.gz 4.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for pytweets 0.2
File Interpreter ABI Platform
pytweets-0.2-py3-none-any.whl Python 3 none any Details

Total release size: 10.0 kB

Release files / pytweets-0.2.tar.gz

Download URL pytweets-0.2.tar.gz
Size 4.6 kB
Tags Source
SHA-256 checksum
How to use checksums
6a213d88b441e9d038ced47e9f1cf74dc4e7e97ef098168a8fe53a5d387dd098
BLAKE2b-256 checksum
How to use checksums
4556d49039d04c38e1b5507e69d7a04100176aeb7f5d7b52fa4c9a66829aff8f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

Release files / pytweets-0.2-py3-none-any.whl

Download URL pytweets-0.2-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f41bb6df1559b3ae2647f62be66913c0173f441e6a70323f87441d080de5a5d5
BLAKE2b-256 checksum
How to use checksums
f5cd7d0cf443959e09baa6ba3c7b8c5d66bf7160222f358cc2af45df157c6285
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.1 CPython/3.6.8

Security for pytweets 0.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page