Spaces:
Sleeping
Sleeping
File size: 1,119 Bytes
cbb84f2 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
Quickstart
================
CLI
-------------
Using Wayback Tweets as a standalone command line tool.
waybacktweets [OPTIONS] USERNAME
.. code-block:: shell
waybacktweets --from 20150101 --to 20191231 --limit 250 jack
Web App
-------------
Using Wayback Tweets as a Streamlit Web App.
`Open the application <https://waybacktweets.streamlit.app>`_, a prototype written in Python with the Streamlit framework and hosted on Streamlit Cloud.
Module
-------------
Using Wayback Tweets as a Python Module.
.. code-block:: python
from waybacktweets import WaybackTweets, TweetsParser, TweetsExporter
USERNAME = "jack"
api = WaybackTweets(USERNAME)
archived_tweets = api.get()
if archived_tweets:
field_options = [
"archived_timestamp",
"original_tweet_url",
"archived_tweet_url",
"archived_statuscode",
]
parser = TweetsParser(archived_tweets, USERNAME, field_options)
parsed_tweets = parser.parse()
exporter = TweetsExporter(parsed_tweets, USERNAME, field_options)
exporter.save_to_csv()
|