You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was just wondering if there was any scope for loading third party plugins, perhaps by providing a new scraper class for alternate cases, i.e url matches a pattern defined in the plugin.
In my mind it would be something like this:
Plugin exports pattern(s)
ServiceProvider loads plugins and stores a list of matching patterns
When submitting new url:
basically I use a lot of recipes from bosh.tv but they don't provide their recipes in JSON metadata so to get around this I'm currently running a python instance locally that scrapes the page and returns the desired page with JSON metadata embedded. The current flow looks like this:
Open recipe buddy
Add recipe, paste the link in to the field appended to my python url eg. http://localhost:2080?url=https://www.bosh.tv/recipes/black-olive-pesto-pasta
Use recipe buddy as normal to import the recipe
This currently works fine but it got me wondering if we could extend recipe buddy to support custom connectors. My typescript is not amazing but I'd be happy to help implement it. There may be a much better way to implement this, for now I'm doing away with the serviceprovider and i'm just going to fork and hard code in the pattern I'm expecting but plugins would be v cool.
No pressure to implement this at all, I may have a stab at it myself or you can close this and tell me to bugger off!
The text was updated successfully, but these errors were encountered:
Hi,
Absolutely loving your work, it works great!
I was just wondering if there was any scope for loading third party plugins, perhaps by providing a new scraper class for alternate cases, i.e url matches a pattern defined in the plugin.
In my mind it would be something like this:
Plugin exports pattern(s)
ServiceProvider loads plugins and stores a list of matching patterns
When submitting new url:
excuse my pythonic pseudo-code
basically I use a lot of recipes from
bosh.tv
but they don't provide their recipes in JSON metadata so to get around this I'm currently running a python instance locally that scrapes the page and returns the desired page with JSON metadata embedded. The current flow looks like this:http://localhost:2080?url=https://www.bosh.tv/recipes/black-olive-pesto-pasta
This currently works fine but it got me wondering if we could extend recipe buddy to support custom connectors. My typescript is not amazing but I'd be happy to help implement it. There may be a much better way to implement this, for now I'm doing away with the serviceprovider and i'm just going to fork and hard code in the pattern I'm expecting but plugins would be v cool.
No pressure to implement this at all, I may have a stab at it myself or you can close this and tell me to bugger off!
The text was updated successfully, but these errors were encountered: