Skip to content

A simple web scraper that saves a list of quotes by your favorite authors to a json file.

Notifications You must be signed in to change notification settings

tshuenhau/quotesByAuthor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

quotesByAuthor

A simple web scraper for goodreads.com that returns a list of quotes by your favorite authors and saves it to a json file.

To use, simply open getQuotes.py, edit the list of authors to your liking, and then run the script.

Required Packages

pip install requests

pip install beautifulsoup4

pip install Levenshtein

pip install langdetect

Examples

to get quotes from Shakespeare and JK Rowling that are less than 175 characters:

import quotesByAuthor

getAllQuotes(["Shakespeare", "JK Rowling"], 175) // saves all the quotes to a json file

getRandomQuote() // displays a random quote from the json file

About

A simple web scraper that saves a list of quotes by your favorite authors to a json file.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages