RecipeScraper CLI Tool
Version: 0.1.1 Python: >= 3.13
RecipeScraper is a Python command-line tool that extracts recipe information from a given recipe URL. It supports most popular recipe websites that use structured data (JSON-LD) and saves the results in a structured text format.
Features: CLI prompts for a recipe URL, or pass it as an argument Scrapes and extracts: Recipe title Ingredients Instructions (including nested sections) Optional: Equipment list, nutrition info if available Saves the recipe in a formatted .txt file in the current directory Works with most websites that provide recipe metadata in structured formats
Requirements: Python >= 3.13
Dependencies (managed automatically with uv): argparse>=1.4.0 bs4>=0.0.2 requests>=2.32.5 validators>=0.35.0
Installation: Clone this repository: git clone https://github.com/yourusername/RecipeScraper.git cd RecipeScraper
Create and sync the virtual environment: uv sync
Activate the environment: Linux / macOS: source .venv/bin/activate Windows: .venv\Scripts\activate
Or install the package directly with pip: pip install recipescraper-cli-tool-er==0.1.0
Usage: Run the program by passing a URL as an argument: recipescraper https://example.com/recipe-url
Or interactively: python main.py
This will scrape the recipe and save a .txt file in the current directory.
Example Output File: Recipe Title: Polenta Fries Ingredients: 1 cup cornmeal 4 cups water Salt Olive oil Instructions: Preheat the oven to 425°F. Bring water to a boil, add salt. Slowly whisk in cornmeal. Cook until thickened... Planned Features: Support exporting recipes in JSON or Markdown Improved error handling and validation Optional web interface for easier scraping Automatic detection of recipe metadata across more websites
License:
MIT License
Release files for recipescraper-cli-tool-er 0.1.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| recipescraper_cli_tool_er-0.1.1.tar.gz | 3.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| recipescraper_cli_tool_er-0.1.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.2 kB
Release files / recipescraper_cli_tool_er-0.1.1.tar.gz
| Download URL | recipescraper_cli_tool_er-0.1.1.tar.gz |
|---|---|
| Size | 3.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a46a54b33e75a1b4dc19a6d5bbd3083533083a80d1858b4986cc38012aee4d3d
|
|
BLAKE2b-256 checksum How to use checksums |
63d515bca2ab2af48f9c3e3d13177b9fcc4a357539710e4d5ff1745a4a97e9cb
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.3
|
Release files / recipescraper_cli_tool_er-0.1.1-py3-none-any.whl
| Download URL | recipescraper_cli_tool_er-0.1.1-py3-none-any.whl |
|---|---|
| Size | 4.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b939c659f0d37ca8eacfbd581887835fe40b95f858b573c2ab673249ff87c5b6
|
|
BLAKE2b-256 checksum How to use checksums |
ccdcf2547c91dc32b9d1e5a59fb06deb5ccd0b8dc5e0f6fba24c3c647e025f3b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.3
|