Retrieves archived tweets CDX data from the Wayback Machine, performs necessary parsing, and saves the data.
Project description
Wayback Tweets
Retrieves archived tweets CDX data from the Wayback Machine, performs necessary parsing (see Field Options), and saves the data in CSV, JSON, and HTML formats.
Installation
pip install waybacktweets
Quickstart
Using Wayback Tweets as a standalone command line tool
waybacktweets [OPTIONS] USERNAME
waybacktweets --from 20150101 --to 20191231 --limit 250 jack
Using Wayback Tweets as a Python Module
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()
Using Wayback Tweets as a Web App
Open the application, a prototype written in Python with the Streamlit framework and hosted on Streamlit Cloud.
Documentation
Acknowledgements
- Tristan Lee (Bellingcat's Data Scientist) for the idea of the application.
- Jessica Smith (Snowflake's Marketing Specialist) and Streamlit/Snowflake teams for the additional server resources on Streamlit Cloud.
- OSINT Community for recommending the application.
[!NOTE] If the application is down, please check the Streamlit Cloud Status.
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
waybacktweets-1.0a3.tar.gz
(26.0 kB
view hashes)
Built Distribution
Close
Hashes for waybacktweets-1.0a3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8b497cb369213890f0c61912635d9e31fb8c22fcb1d44f3e45e1cf730f3ca300 |
|
MD5 | 6abe6bf0e80b5db86978f1a00bb83d18 |
|
BLAKE2b-256 | d6742a740d4e95a4b1c456109f848a40f1c60b1a8a22d4059434a43fb2628662 |