Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Web Scraper CSV πŸ•ΈοΈπŸ“„

A beginner-friendly Python script that scrapes quotes and authors from any site structured like quotes.toscrape.com, and exports the results into a clean CSV file.


πŸ”§ Features

  • Scrapes quotes and authors from multiple pages
  • Automatically formats and saves to a .csv file
  • User selects the number of pages to scrape
  • Menu interface for repeat use without restarting the program

πŸ“¦ Requirements

  • Python 3.7+
  • requests
  • beautifulsoup4

Install dependencies:

pip install requests beautifulsoup4

πŸš€ How to Run

  1. Clone the repo:
git clone https://github.com/gandalf-ddj/web_scraper_csv.git
cd web_scraper_csv
  1. Run the script:
python main.py
  1. Follow the prompts:
  • Enter the base URL
  • Choose how many pages to scrape
  • Name your CSV file

πŸ’‘ Example Output

Sample CSV output format:

Quote,Author
"The world as we have created it is a process of our thinking...",Albert Einstein
"It is our choices, Harry, that show what we truly are...",J.K. Rowling

πŸ” Notes

  • The program appends /page/X to paginate automatically.
  • Meant for educational purposes β€” always respect robots.txt and site terms when scraping.

🧠 Made With Learning In Mind

This project is part of a growing Python portfolio, built with a focus on:

  • Real-world use cases
  • User interaction
  • Dynamic content parsing

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages