Skip to main content

Scrapes all recipe URLs from provided base URL.

Project description

recipe-urls

Overview

recipe-urls is a Python package designed to gather recipe URLs from a given base URL or from provided html content.


Installation

pip install recipe-urls

Usage

from recipe_urls import scrape_urls, scrape_html

Example usage

base_urls = ['https://bakingmischief.com', 'https://www.allrecipes.com/recipes/80/main-dish/']
compiled_recipe_links = []

for base_url in base_urls:
    scraped_links = scrape_urls(base_url)
    compiled_recipe_links.extend(scraped_links)
input_html = [baking_mischief_html, all_recipes_html]
compiled_recipe_links = []

for html_content in input_html:
    scraped_links = scrape_html(html) # optionally, scrape_html(html, base_url)
    compiled_recipe_links.extend(scraped_links)

Supported Websites

Acknowledgments

This package was inspired by (and meant to be used in conjunction with) recipe-scrapers by hhursev. Thanks for making the intersection of programming and recipes more doable!

License

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

recipe_urls-0.2.0.tar.gz (5.9 MB view details)

Uploaded Source

Built Distribution

recipe_urls-0.2.0-py3-none-any.whl (56.0 kB view details)

Uploaded Python 3

File details

Details for the file recipe_urls-0.2.0.tar.gz.

File metadata

  • Download URL: recipe_urls-0.2.0.tar.gz
  • Upload date:
  • Size: 5.9 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.5

File hashes

Hashes for recipe_urls-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e9863d50028d1b516a72a763bfe5b78af644cd877cb37cd9b6ff3918ac37c951
MD5 dfdb5aa7c09b652c9ce15beb87c4d6b7
BLAKE2b-256 143c03fd6adc1533a0cea35c19cec6684e5d2c2e5dea9c9351cf067ecaf85944

See more details on using hashes here.

File details

Details for the file recipe_urls-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: recipe_urls-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 56.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.10.5

File hashes

Hashes for recipe_urls-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 37e22686d62a732aae5ba1968b885621f8740e7aa27164b455f0842064f0564f
MD5 2539c4ee5a404556ae2ac5dd1937dbfa
BLAKE2b-256 2662dd5ebf3f3a28838fabc7a5319b16476b7f62f9eb047042c2bc579d41cc59

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page