Skip to content

jingqiyang/print_html_pdf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Print HTML as PDF

print_html_pdfs.py is a script for printing html pages as pdf from the command line.
More usage instructions in the script itself.

Requirements: Chrome (application)

Installation:

  1. Run:
pip3 install selenium webdriver_manager
brew install chromedriver
  1. After successfully installing chromedriver, look for the installation location. it should say something like:
==> Linking Binary 'chromedriver' to '/opt/homebrew/bin/chrome
  1. Navigate to chromedriver installation location:
cd /opt/homebrew/bin
# or possibly
cd /usr/local/bin
  1. If you have a macbook, run:
xattr -cr chromedriver

(This will allow this mac to bypass restrictions on the downloaded executable.)

Reference:

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published