Skip to content

Bubbu0129/Economist2PDF

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

Economist2PDF

Convert articles on the Economist to PDF

DISCLAIMER: This program is FOR EDUCATIONAL PURPOSE ONLY. Do not distribute the output files, and immediately delete them after browsing.

Usage: main.py [OPTIONS]
The program converts articles on the Economist to PDF.
It reads URLs from <stdin> in format "<URL>\n<URL>\n<URL>\n..."
Options: 
    -d, --dir=          Local directory to store output file
    -p, --http-proxy=   HTTP proxy to fetch article, e.g. http://[username:password@]hostname:port
    -t, --text-only     Output text-only PDF
    -v, --verbose       Print user-friendly message
    -q, --quiet         Redirect 
    -h, --help          Show help message

PS: The program depends on python library fpdf2. Install by executing:

pip install fpdf2

About

Convert articles on the Economist to PDF

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages