Skip to content

A game based on quotes parsed with Requests and Beautiful Soup modules.

License

Notifications You must be signed in to change notification settings

dents0/QuotesGame

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quotes Game

A game of guessing who said a given quote. All quotes are parsed from http://quotes.toscrape.com/ and saved in a CSV file.

The game starts after running quotes_game.py. Users have 4 attempts to guess an author of a quote correctly. Once the guess is correct or there is no attempts left, users will be offered to play again.

Requirements

Python 3.6+

Modules:

How it works

The project is based on 3 main files: quotes.csv, quotes_game.py and scrape_quotes.py.

The file scrape_quotes.py is using Requests and Beautiful Soup modules to parse a website with quotes and then saves the quotes into a CSV file - quotes.csv, which is used for the game's logic.

sc3

Running quotes_game.py will start the game.

sc4

Users will have 4 attempts to guess the author correctly. After each attempt a hint will be given. If a guess is correct or there is no attempts left, users will be offered to play again.

sc5

Once in a while, users may need to update the quotes. For that, scrape_quotes.py should be run.

sc2

About

A game based on quotes parsed with Requests and Beautiful Soup modules.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages