A small, beginner-friendly Python web scraper that fetches quotes from quotes.toscrape.com and filters them by keywords.
scrapping.py— main script (CLI-friendly)requirements.txt— libraries to install.gitignore— common ignoresLICENSE— MIT license
-
Create a virtual environment (recommended)
python -m venv .venv source .venv/bin/activate # macOS / Linux .venv\Scripts\activate # Windows (PowerShell)
-
Install dependencies
pip install -r requirements.txt
-
Run the script
python scrapping.py
-
Example: filter only for
lifeandlovepython scrapping.py --keywords life love
quotes-scraper/
├── scrapping.py
├── requirements.txt
├── README.md
├── LICENSE
├── .gitignore
Feel free to open issues or pull requests.