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 and Followers Lookup
import tweetple
from tweetple import TweetPle
# Bearer token accesible via Twitter Developer Academic Research Track
bearer_token='AAAAAAAA'
# List of ids
ids = ['308131814']
# Retrieve users' information
TweetPle.TweepleStreamer(ids, bearer_token).user_lookup()
# Retrieve followers' information
TweetPle.TweepleStreamer(ids, bearer_token).followers_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.13008.tar.gz
(9.2 kB
view hashes)