Parse a Twitter achive JSON and produce a PDF file.
Project description
Tweet archive parser
This is a simple tool to parse Twitter archived JSON files and convert to PDF document file format.
Acknowledgements
- Isaac Koi
- Forked from vrruiz/tweet-js
- qedjoe
- DejaVu Fonts
Installation
pip install tweets2pdf
To upgrade to the latest version:
pip install tweets2pdf --upgrade
Usage
Download your Twitter archive
See: Twitter Help Centre How to download your Twitter archive. Once you have downloaded your archive, look for the tweets.js
JSON file which contains all your tweets. This code will process that file.
Run the script
The basic usage is:
python -m tweets2pdf -f tweets.js -u twitter_username -p output.pdf --images
The --images
option enables the downloading of pictures from Twitter, which will make the process much slower.
For more details:
python -m tweets2pdf --help
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
tweets2pdf-0.0.1.tar.gz
(391.0 kB
view hashes)
Built Distribution
tweets2pdf-0.0.1-py3-none-any.whl
(10.0 kB
view hashes)
Close
Hashes for tweets2pdf-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d0f314f5c4af00f5fa5a04bcb3607054c255ea6e461c7c0c326ac259e830c803 |
|
MD5 | a713dc12962f15924c3c68cb707376c3 |
|
BLAKE2b-256 | e0bf8a2a3ad8568c10eccf2b18b321b1df755265d1d851a19888bcce0cae9ec1 |