phantombuster / nickjs

Web scraping library made by the Phantombuster team. Modern, simple & works on all websites. (Deprecated)
https://nickjs.org
ISC License
501 stars 48 forks source link

Error: failed to inject local script "../injectables/jquery.min.js" #20

Closed sulthonzh closed 6 years ago

sulthonzh commented 6 years ago

how solvethis error : when run with thiscommand

./node_modules/casperjs/bin/casperjs lib/myNewBot.js

paps commented 6 years ago

You should replace "../injectables/jquery.min.js" with a path to an existing jQuery file. It can also be an URL, "https://code.jquery.com/jquery-3.2.1.min.js" will most certainly work.

sulthonzh commented 6 years ago

2018-01-05-172908_1366x768_scrot why this is give me same error?

run from casperjs

paps commented 6 years ago

That's weird. Can you try adding --web-security=false between the casperjs binary and your script? Are you using a proxy?

sulthonzh commented 6 years ago

not using proxy, tried --web-security=false but not effect, how about local lib *.js, where is right path to store injections lib? like my SS, Right?

paps commented 6 years ago

The path is relative to your working directory. Maybe try putting jquery.js in the same folder?