Skip to main content

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

Installation

Install Python.

Install this package in your current environment using the command below:

pip install tweets2pdf

Upgrade

To update to the latest version of this software:

pip install --upgrade tweets2pdf

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:

tweets2pdf -f tweets.js --images -p output.pdf

The --images option enables the downloading of pictures from Twitter, which will make the process much slower.

For more details:

tweets2pdf --help

Development

Contributing

Please see CONTRIBUTING.md for information about participating in this project.

Please submit bug reports using GitHub Issues.

Deployment status

Upload Python Package

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.5.tar.gz (392.9 kB view details)

Uploaded Source

Built Distribution

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

tweets2pdf-0.0.5-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

Details for the file tweets2pdf-0.0.5.tar.gz.

File metadata

  • Download URL: tweets2pdf-0.0.5.tar.gz
  • Upload date:
  • Size: 392.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for tweets2pdf-0.0.5.tar.gz
Algorithm Hash digest
SHA256 c5f80186efcb4ae647f833ca3ca4b83027e626c6add38ee4917296f59e7775fc
MD5 43b6aa13107c135c91012d6d88b55df2
BLAKE2b-256 ed0b7ddf4bc9ec95e777af8048222d0185aac4bb55b47064ebcb300aa0824e97

See more details on using hashes here.

File details

Details for the file tweets2pdf-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: tweets2pdf-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 12.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.9.15

File hashes

Hashes for tweets2pdf-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 0829da802df469de694a1e7a4bab397f7a8dbe361eec6971587770eeae90934c
MD5 9a26ac992060c2875741d214c1571a50
BLAKE2b-256 0e80bb220824eda650b2ae81aafb01044ede9b990c9d86b1c292c40da9fef681

See more details on using hashes here.

Supported by

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