Skip to main content

Getting Started

Install

pip install twiplies

How to use

from twiplies.core import Twiplies
import os
from dotenv import load_dotenv

load_dotenv()

robot = Twiplies(
    username="joaopcnogueira",
    consumer_key=os.getenv("CONSUMER_KEY"),
    consumer_secret=os.getenv("CONSUMER_SECRET"),
    access_token=os.getenv("ACCESS_TOKEN"),
    access_token_secret=os.getenv("ACCESS_TOKEN_SECRET")
)
robot
Twiplies(username='joaopcnogueira')

Get tweet’s replies from a specific tweet_id:

robot.get_replies_from_tweet(tweet_id='1552109783393751042', n_tweets=100)
<style scoped> .dataframe tbody tr th:only-of-type { vertical-align: middle; }
.dataframe tbody tr th {
    vertical-align: top;
}

.dataframe thead th {
    text-align: right;
}
</style>
tweet_original tweet_replies tweet_user tweet_location
0 1552109783393751042 @joaopcnogueira Sim! O carregador não posso ma... annppn Rio de Janeiro, Brazil

Get tweet’s replies from all twitters from an user:

robot.get_all_replies(n_tweets=1000)
<style scoped> .dataframe tbody tr th:only-of-type { vertical-align: middle; }
.dataframe tbody tr th {
    vertical-align: top;
}

.dataframe thead th {
    text-align: right;
}
</style>
tweet_original tweet_replies tweet_user tweet_location
0 1553619245552091136 @jeremyphoward Did I forgot to mention all of ... joaopcnogueira
1 1553412331845160962 @joaopcnogueira @arnaldog12_ Olha só, não esta... apachaves France
2 1552333709717786625 @joaopcnogueira 🥲 mribeirodantas Natal, Brazil🇧🇷
3 1552112385065877504 @joaopcnogueira não 😣 annppn Rio de Janeiro, Brazil
4 1552109783393751042 @joaopcnogueira Sim! O carregador não posso ma... annppn Rio de Janeiro, Brazil
5 1550922456625463296 @joaopcnogueira Salam, here is your unroll: ht... UnrollHelper

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

twiplies-0.0.4.tar.gz (9.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

twiplies-0.0.4-py3-none-any.whl (9.1 kB view details)

Uploaded Python 3

File details

Details for the file twiplies-0.0.4.tar.gz.

File metadata

  • Download URL: twiplies-0.0.4.tar.gz
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.12

File hashes

Hashes for twiplies-0.0.4.tar.gz
Algorithm Hash digest
SHA256 a12fc423908ac6327804da41db186e336f77c4ad7eae191c93d585da1ec120f5
MD5 62f0a3df4c2ea6de430705a1a778c6df
BLAKE2b-256 bd7ba46e3b401f0462f375b2d654940e22233f59c9a8ef3048d7d3c46f234bdf

See more details on using hashes here.

File details

Details for the file twiplies-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: twiplies-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 9.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.12

File hashes

Hashes for twiplies-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 f871ef6eb4a6c2a80c664e124bb68782f485866860e2c2f153f45dd4e94d61e7
MD5 b81feb62cb7315f9dbaa69df532384c0
BLAKE2b-256 f44a9d8679852ec88cc6a1cda1943e643020b8ad9d6b4b564496e1b127e76643

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 files

0.0.3

2 files

0.0.2

2 files

Supported by

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