Skip to main content

A python wrapper for users of the Academic Research product track

Project description

TWEETPLE

GitHub all releases Twitter API v2 badge

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:

  1. Tweets' ids

  2. Tweeples' handles

  3. 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


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.18.tar.gz (9.2 kB view details)

Uploaded Source

File details

Details for the file tweetple-0.18.tar.gz.

File metadata

  • Download URL: tweetple-0.18.tar.gz
  • Upload date:
  • Size: 9.2 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

Hashes for tweetple-0.18.tar.gz
Algorithm Hash digest
SHA256 63d3f136701f8a2eec9f3ed12072f51c6700a3100be5dc245ed4a8b0469f02e4
MD5 33a6c4a3abc55dd97f287ee0e5f2a1cd
BLAKE2b-256 a0d277baa5a82e35864e1ef8598c2e661aac1a2b65250da4d46f6073d00dfef8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page