GitXplorerGitXplorer
A

twitter_thread2pdf

public
6 stars
0 forks
0 issues

Commits

List of commits on branch main.
Unverified
f5fa36bf597c2dc550003baf0e7b77da4de5f31a

Tweet2txt

AAkasurde committed 2 years ago
Unverified
5cd5cdbc1375280e4929e0d186d8ad62cbf4e5bc

Initial Commit

AAkasurde committed 3 years ago

README

The README file for this repository.

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