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)
- [Security] Reporting of a vulnerability HOT 7
- [Error] - migrate from Postgres 15 to 16.2 HOT 1
- [SCRAPER] - www.colruyt.be/nl/lekker-koken recipe scraping returns failed to scrape url HOT 2
- [BUG] - Startup loop/high CPU usage in Docker with 1.5.1 HOT 3
- [BUG] - Nextcloud migration fails due to malformed nutrition field HOT 1
- [BUG] - OIDC with Zitadel - Error 404 HOT 14
- Unable to delete meal planner item HOT 7
- Update mealie to HA documentation example code. HOT 2
- [BUG] - OIDC - Invalid JSON Web Key Set HOT 8
- [BUG] - POSTGRES_URL_OVERRIDE requires an unnecessary `:` in the URI HOT 1
- [BUG] - Unable to update recipe rating using the API HOT 1
- [BUG] - Fractions of ingredient quantities less than 1 aren't displayed when no unit is selected HOT 2
- [BUG] - Changing Timezone in docker-compose.yml results in error HOT 2
- [SCRAPER] - Can not import from bettybossi.ch HOT 1
- Cant access after installing docker HOT 1
- [BUG] - Recipe image from another mealie instance HOT 3
- Setting backend passwords with docker compose secrets HOT 4
- [BUG] - Merging ingredient doesnt work if referenced by a shopping list HOT 3
- [BUG] - Improve Random Dinner Selection Feature in Meal Planner HOT 1
- [BUG] - OpenAI - Error when using Ollama with no API Key HOT 5
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.