A python wrapper for users of the Academic Research product track.
Project description
TWEETPLE
Installation
The easiest way to install the latest version from PyPI is by using pip:
pip install tweetple
Usage
- Users, Followers, Liking Users and Retweeted By Lookup
import tweetple
from tweetple import TweetPle
# Bearer token accesible via Twitter Developer Academic Research Track
bearer_token='AAAAAAAA'
# List of handle ids
ids = ['308131814']
# Retrieve users' information
TweetPle.TweepleStreamer(ids, bearer_token).user_lookup()
# Retrieve followers' information
TweetPle.TweepleStreamer(ids, bearer_token).followers_lookup()
# List of tweet ids
ids = ['308131814']
# Retrieve liking users
TweetPle.TweepleStreamer(ids, bearer_token).likes_lookup()
# Retrieve retweeting users
TweetPle.TweepleStreamer(ids, bearer_token).retweet_lookup()
- Retrieve Tweets
One can provide as input a list of:
-
Tweets' ids
-
Tweeples' handles
-
Links
import tweetple
from tweetple import TweetPle
# bearer token accesible via Twitter Developer Academic Research Track
bearer_token='AAAAAAAA'
# list of tweets' ids
tweetl = ['1461090445702881281']
TweetPle.TweetStreamer(tweetl, bearer_token).main()
# list of tweeplers' handles
tweeplel = ['zorroyanez']
TweetPle.TweetStreamer(tweeplel, bearer_token).main()
# list of links potentially shared via twitter
linkl = ['https://lula.com.br/22-vitorias-judiciais-de-lula-inquerito-contra-filhos-e-encerrado-por-falta-de-provas/']
TweetPle.TweetStreamer(linkl, bearer_token).main()
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
tweetple-0.86.tar.gz
(9.4 kB
view details)
File details
Details for the file tweetple-0.86.tar.gz.
File metadata
- Download URL: tweetple-0.86.tar.gz
- Upload date:
- Size: 9.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.6.0 importlib_metadata/4.8.2 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
31cf2ae7165efbf5f78f62fe58a378f426909f36872a5ca8ad26a03656425bd6
|
|
| MD5 |
bec2d4dffb82c0739eb718517a80a49a
|
|
| BLAKE2b-256 |
1818770f3c74109e601a713d5ef1e1c9a7d9bc2ac8652df4e60b15dd17e5c49f
|