Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add more website extract possibilities #7

Open
cd-FileX opened this issue May 30, 2024 · 5 comments
Open

Add more website extract possibilities #7

cd-FileX opened this issue May 30, 2024 · 5 comments

Comments

@cd-FileX
Copy link

It seems you are using pretty specific ways to extract data from single websites.
Not only does this slow down the development, but if you would reach the point where you have support for a lot of websites, you have a large list of them.

What you should rather do, is

  • Either searching for a way to support possibly all websites at once and fix those not working with that
  • Or try to support as many websites as you can with one system, having multiple of them but easier to develope
  • or find a better way

There are probably more websites for recipes than you could imagine and it is too difficult picking out every single one and build it into your app.
For sure, you can do it like that and it will succeed in a limited way, though you would have to rely on people telling you which websites to add and maybe even where the content you need is, which is not pretty reliable.

@judemont
Copy link
Owner

judemont commented May 30, 2024

I've created a dart package to extract recipes, so your issue would be better placed here: https://github.com/judemont/recipe_extractor But I'm going to answer you anyway.

Recipe sites are all very different from one another, and I don't think I have the skills at present to create a universal extraction system.
It's already very easy to add support for other sites with this package, and if you need another one, just ask me and I'll add it.

@Gymcap
Copy link

Gymcap commented Jun 11, 2024

I have fantastic news for you, as a universal recipe extraction system was already created by the folks over at https://cooked.wiki/.

Here are some examples:
https://www.tasteofhome.com/recipes/favorite-baked-spaghetti/
Becomes:
https://cooked.wiki/new/recent/47a923ae-5f5f-48df-81b7-e248385f5de8

https://www.averiecooks.com/easy-15-minute-spaghetti/
Becomes:
https://cooked.wiki/new/recent/8a383dc8-d019-415f-a74e-744a62193b90

https://www.favfamilyrecipes.com/nicks-authentic-italian-spaghetti/
Becomes:
https://cooked.wiki/new/recent/ee6b0448-e47b-4408-a8a3-2da97413ac95

And so on.

As you can see, all of these recipes from unsupported sites get translated into a consistent layout under cooked.wiki. by adding support for them, users could use any site that works with cooked.wiki to load recipes in the app. You could even automate the process of sending the users arbitrary recipe link to cooked.wiki to get the consistent format.

@judemont
Copy link
Owner

judemont commented Jun 12, 2024

Very good idea, I'll try to integrate cooked.wiki in recipe_extractor soon !

@cd-FileX
Copy link
Author

cd-FileX commented Jun 12, 2024 via email

@judemont
Copy link
Owner

I'll try to find more open alternatives

@judemont judemont reopened this Jun 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants