Comments (3)
The scraper debugger returns:
recipe_scrapers was unable to scrape this URL
from mealie.
So it seems (as already suggested in the Discord by other members of the team) that the scraper is being blocked by the website.
All i can get out of the scraper is the domain and via html mode the following "Access Denied" Message.
b'<HTML><HEAD>\n<TITLE>Access Denied</TITLE>\n</HEAD><BODY>\n<H1>Access Denied</H1>\n \nYou don\'t have permission to access "http://www.ah.nl/allerhande/recept/R-R1199309/courgettelasagne-met-3-kazen-en-gehakt" on this server.<P>\nReference #18.84601302.1703930024.5a077ebe\n</BODY>\n</HTML>\n'
I'll be closing this, as there is not much mealie can do against that.
from mealie.
I ran into the same issue. Doing some additional research gave me the following insights:
ah.nl/allerhande uses TLS fingerprinting detection to do bot detection.
A regular request with insomnia gave the same results as reported here.
however when using a tls spoofer proxy (https://github.com/LyleMi/ja3proxy)
and making sure the "User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:124.0) Gecko/20100101 Firefox/124.0" and "Accept-Encoding:" header were set resulted in a correct result. (note accept-encoding only needed to be present the value does not matter)
Thus this issue may easily be resolved if the request is altered in such a way that this information is send with the scrape request.
tls spoofing can be directly build into mealie perhaps to be used optionally or by allowing the use of a proxy
additionally the "Accept" header should probably be set next to the user-agent
https://github.com/mealie-recipes/mealie/blob/mealie-next/mealie/services/scraper/scraper_strategies.py
https://github.com/mealie-recipes/mealie/blob/mealie-next/mealie/services/recipe/recipe_data_service.py
from mealie.
Related Issues (20)
- [BUG] - PermissionError when `/run/secrets` is inaccessible HOT 10
- [BUG] - Ignoring OIDC_CONFIGURATION_URL variable HOT 4
- [BUG] - Importing Recipes Twice Via Migration Creates Duplicate Recipes With Missing Images
- [BUG] - Offline detection of shopping list is broken HOT 2
- [BUG] - JSONDecodeError causes entire Nextcloud Cookbook migration to fail HOT 1
- [SCRAPER] - 403 response scrapping Cookpad.com recipes
- [SCRAPER] - none of the k-ruoka.fi recipes cannot be scraped
- [BUG] - Users with no groups unable to authenticate via OIDC if `OIDC_ADMIN_GROUP` is populated
- Random dinner option picking recipes from other categories HOT 1
- [BUG] - Warning about `/run/secrets` not existing on startup HOT 2
- [BUG] - SQLite to PostgreSQL FATAL: role "root" does not exist HOT 1
- [SCRAPER] - Serious Eats
- [Task] - Document OpenAI Features
- [BUG] - PWA manifest file does not load when behind Cloudflare Access, requires crossorigin="use-credentials"
- [BUG] - Recipe Actions don't work with Home Assistant due to incorrect content type header
- [SECURITY] - Audit NEEDED, so many unprotected endpoints HOT 2
- [BUG] - "No recipes match your rules" if you create rule with more than one category of food.
- [SCRAPER] - Ingredients not being parsed properly HOT 3
- [BUG] - Bulk Import via URL from AllRecipies fails to bring in ingredients HOT 2
- [BUG] - Data Management - Recipe Data - Tag / Category Action Showing Same List HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mealie.