Skip to content

A simple Python web scraper that pulls the current best seller books from The New York Times. Currently used for Public Libraries.

License

Notifications You must be signed in to change notification settings

kbHoward2/NYT-BestSellers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NYT-BestSellers

Alt text

About

A script to pull the New York Times BestSellers into a PDF file.

Features

  • Export to PDF or CSV for easy printing or spreadsheet view.
  • Configurable options including summaries, book cover, author.
  • Letter or Legal size.

Operating System Dependencies

  • python3.7+
  • python venv
  • pip3
  • git (optional)

Python Dependencies

  • Tkinter
  • FPDF
  • BeautifulSoup4
  • Requests

Setup Virtual Environment

Ubuntu

  1. Download the zip file or clone the repository with git.
  2. git clone https://github.com/kbHoward2/NYT-BestSellers.git
  3. python3 -m venv /path/to/repository
  4. cd NYT-BestSellers
  5. apt install python3-tk
  6. pip install -r requirements.txt
  7. python3 main.py

Windows

See the releases page for bundle Windows EXE for your machine.

Usage

Simply select your options and click start a PDF document will be output in the directory of the binary executable.

Future Plans

  • Export checkbox for .csv and .txt files.
  • Option for Book Summary.
  • Option for Text Only.
  • Option for Image Only.
  • Headless execution through commandline.