Skip to content

Download Twitter Thread as PDF file for archival purpose

Notifications You must be signed in to change notification settings

Akasurde/twitter_thread2pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twitter Thread to PDF

Create a PDF for Twitter Thread for archival purpose.

Installation

  • Install all the required third party libraries using requirements.txt
  • Generate an access token and access token secret through your app’s Keys and Tokens tab under the Twitter Developer Portal Projects & Apps page.
  • Create a file .twitter_api in user's home directory like -
[defaults]
CONSUMER_KEY = <TWITTER_CONSUMER_KEY>
CONSUMER_SECRET = <TWITTER_CONSUMER_SECRET>
ACCESS_TOKEN = <TWITTER_ACCESS_TOKEN>
ACCESS_TOKEN_SECRET = <TWITTER_ACCESS_TOKEN_SECRET>
  • Copy Twitter Thread id you want to download,

Twitter Thread ID

  • Run,
# python main.py -t 1544158438900793344 -p sample.pdf
  • You will get sample.pdf in current directory.

Sample PDF

TODO

  • Download images in Twitter thread
  • bugfixing

About

Download Twitter Thread as PDF file for archival purpose

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages