Skip to main content

A Python wrapper for the Twitter API using Twitter API version 1.1 and 2!

Project description

PyTweet

PyTweet is an api wrapper made for twitter using twitter's api version 2!

Installation

Windows

py3 -m pip install PyTweet

Linux

python -m pip install PyTweet

Usage

import twitter

client=twitter.Client("Your Bearer Token Here!!!", consumer_key="Your consumer_key here", consumer_key_secret="Your consumer_key_secret here", access_token="Your access_token here", access_token_secret="Your access_token_secret here") #if you dont have one make an application in https://apps.twitter.com

user=client.get_user_by_username("TheGenocides")
print(user.name, user.username, user.id)
#Return The user's name, username, and id

Contribute

You can Contribute or open an issue regarding this wrapper in github!

Licence

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

PyTweet-1.0.0.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

PyTweet-1.0.0-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file PyTweet-1.0.0.tar.gz.

File metadata

  • Download URL: PyTweet-1.0.0.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.10.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.12

File hashes

Hashes for PyTweet-1.0.0.tar.gz
Algorithm Hash digest
SHA256 db51380e57352004cf526d3853f6208753ae1af905c88e90da9084895794caca
MD5 fa01a36cd78d267aab90ec7428a5afc2
BLAKE2b-256 4f5bdbb6074374669214dfe044097ac6f7fd527b621c1abffed1f64a04b79b5a

See more details on using hashes here.

File details

Details for the file PyTweet-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: PyTweet-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 10.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/3.10.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.8.12

File hashes

Hashes for PyTweet-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 4de58bac2c0a19540aca45832f03dc5c41efcdb8d9d952d35ea19f9bd57acef9
MD5 e92b9a08e93da53c2216e317c1a712c5
BLAKE2b-256 4150e3e54ad30173ee9ed253014442ac6cf2dcb3422b228c9d2058eed4261800

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