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'm trying to read the README and figure out based on my subroutines, evaluator, surgeon import, and html data how to mesh it all together.
it's tough to know how to go from the yaml config to something that actually works. for example, here is what I have so far:
import{ScraperOperation}from'./_base';import*asrequestfrom'request';import*assurgeonfrom'surgeon';constURL='http://mysite.com';exportclassScraperextendsScraperOperation{publicscrape(){this.readYaml(`test.yaml`)//read as string.then(mainSiteInstructions=>{console.log(mainSiteInstructions);request(URL,(err,res,body)=>{if(err||res.statusCode!==200)return;constx=surgeon.default({evaluator: surgeon.cheerioEvaluator()});x(mainSiteInstructions,body);});});}}
where the yaml file is:
alphabetLinks:
- select a {0, } | rp title | test /Rule Index/
I just seem to continuously get errors though.
The text was updated successfully, but these errors were encountered:
actually - I think this might work, my data source is just modifying itself because I don't have javascript enabled when doing a request(?) but all the same I think a full example would help a lot.
I'm trying to read the README and figure out based on my subroutines, evaluator, surgeon import, and html data how to mesh it all together.
it's tough to know how to go from the yaml config to something that actually works. for example, here is what I have so far:
where the yaml file is:
I just seem to continuously get errors though.
The text was updated successfully, but these errors were encountered: