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

Metadata

Release files for twiplies 0.0.4

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for twiplies 0.0.4
File Size Uploaded
twiplies-0.0.4.tar.gz 9.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for twiplies 0.0.4
File Interpreter ABI Platform
twiplies-0.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 18.9 kB

Release files / twiplies-0.0.4.tar.gz

Download URL twiplies-0.0.4.tar.gz
Size 9.8 kB
Tags Source
SHA-256 checksum
How to use checksums
a12fc423908ac6327804da41db186e336f77c4ad7eae191c93d585da1ec120f5
BLAKE2b-256 checksum
How to use checksums
bd7ba46e3b401f0462f375b2d654940e22233f59c9a8ef3048d7d3c46f234bdf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.12

Release files / twiplies-0.0.4-py3-none-any.whl

Download URL twiplies-0.0.4-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f871ef6eb4a6c2a80c664e124bb68782f485866860e2c2f153f45dd4e94d61e7
BLAKE2b-256 checksum
How to use checksums
f44a9d8679852ec88cc6a1cda1943e643020b8ad9d6b4b564496e1b127e76643
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.1 CPython/3.9.12

Release history Release notifications | RSS feed

This release

0.0.4 This release

2 release files

0.0.3

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page