aboutsummaryrefslogtreecommitdiff
path: root/scripts/scraping/scraper.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/scraping/scraper.py')
-rw-r--r--scripts/scraping/scraper.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/scripts/scraping/scraper.py b/scripts/scraping/scraper.py
index 8919d46..0e0b9c8 100644
--- a/scripts/scraping/scraper.py
+++ b/scripts/scraping/scraper.py
@@ -25,7 +25,7 @@ def extractInstructions(instructions):
return returnedInstructions
-def scrape(url, user_name):
+def scrape(url):
try:
data = requests.get(url, headers= {"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"})
html = BeautifulSoup(data.text, 'html.parser')
@@ -43,7 +43,6 @@ def scrape(url, user_name):
slug = parse.quote(i["name"]).lower()
# The recipe
- recipe["user"] = user_name
recipe["slug"] = slug
recipe["title"] = i["name"]
recipe["image"] = i["image"][0]