Skip to content
This repository has been archived by the owner on Nov 10, 2023. It is now read-only.

Is there a way to add new paths during the parse script ? #2

Open
nvdnkpr opened this issue Aug 31, 2014 · 1 comment
Open

Is there a way to add new paths during the parse script ? #2

nvdnkpr opened this issue Aug 31, 2014 · 1 comment

Comments

@nvdnkpr
Copy link

nvdnkpr commented Aug 31, 2014

Can we add a reference to 'paths' into the vm sandbox ?

@janober
Copy link

janober commented Jan 4, 2015

I am not sure if should add a pull-request but made the following changes:
janober@29cf7c5

So now it is possible to use whatever you want in the parser. Like for example the following:
'''
var modules = {console: console, whatEver: whatEver};
scraper.run(html, parseScript, modules);
'''

Now you can use "whatEver" and also for exampe "console.log".

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants