Skip to content

This is a Python program that scrapes quotes from a website using BeautifulSoup and request library. The scraper extracts quotes along with their author and tags, and stores them in a pickle file. This project serves as an example of how to use web scraping to extract information from a website, save it in a structure and make a quiz from the data.

License

Notifications You must be signed in to change notification settings

8Altair/Quotes_web_scraping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Table of Contents

QuoteScraper

This is a Python program that scrapes quotes from a website and stores them in a list of dictionaries. Each dictionary contains the quote text, the name of the person who said the quote, and the href of the link to the person's bio.

Requirements

To run this program, you'll need:

  • Python 3.x
  • request library
  • beautifulsoup4 library
  • pytest library (for running tests)

Usage

To use this program, simply run the main.py file:

The program will ask you if you want to scrape the website or read saved quotes. Enter 1 to scrape the website or 2 to read saved quotes. If you choose to scrape the website, the program will scrape quotes from the website and store them in a file called quotes.pickle.

Tests

To run the tests, simply run the wanted test function.

Contributing

If you find a bug or have a feature request, please open an issue in the GitHub repository. If you want to contribute to the project, feel free to fork the repository and submit a pull request.

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

This is a Python program that scrapes quotes from a website using BeautifulSoup and request library. The scraper extracts quotes along with their author and tags, and stores them in a pickle file. This project serves as an example of how to use web scraping to extract information from a website, save it in a structure and make a quiz from the data.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages