This question already has answers here:
Can Nokogiri interpret javascript? - Web Scraping
(2 answers)
Closed 7 years ago.
I am curious if Nokogiri can see JavaScript. If not, what is the best way to get around it without anything like Watir or PanthomJS?
For example, the photos on this page are controlled by JavaScript: http://twotreesny.com/residential/rentals/110livingston
They are not shown when I disabled Javascript. In this case, what is the best way to grab these images?
Nokogiri is actually just a parser for HTML. You need a browser engine, like Selenium, or WebKit, which will load the page like your browser does, and run the JavaScript scripts.
The easiest way for you would be to build some crawler with Capybara + Phantomjs.
Related
This question already has answers here:
How do I hide javascript code in a webpage?
(12 answers)
Closed 12 months ago.
Is there a way I can stop people from seeing the Javascript Source code that includes the Server API key and server information?
No, there is not.
You can obfuscate and minify your code, but that doesn't help since your users can look at their browser's Network Inspector instead.
This question already has an answer here:
Can a chrome application launch local program?
(1 answer)
Closed 7 years ago.
I am very new at PPAPI. I have already written a plugin to launch client's applications e.g. Word in my web based application using NPAPI (using a Java applet). Now I want to do that using PPAPI. Any chances?
Thanks
Reza
PPAPI is not a solution for what you are trying to do. You should look at Native Messaging (see this question for example).
This question already has answers here:
How to handle localization in JavaScript files?
(3 answers)
Closed 9 years ago.
I need to internationalise the javascript messages in the frontend, I'm using play framework 2.2.1, for backend messages I followed this: http://www.playframework.com/documentation/2.0.x/ScalaI18N
But I could not find anything for frontend, any ideas? Thanks!
Play has no native support for JS internationalization, anyway you can easily do it yourself using common JS files containing objects with labels + small method for finding proper translation.
Check this answer - you'll find there full implementation for Play 2.x
This question already has answers here:
Closed 10 years ago.
Possible Duplicate:
How can I obfuscate JavaScript?
I want my js not to be understood by anyone. I have read some similar posts on this site but can get an exe or a full desktop application for it. Whatever I get are online tools.
OR how to sense '\n' character in js?
UglifyJS / UglifyJS2:
JavaScript parser / mangler / compressor / beautifier toolkit
You can download "yui compressor" to compress the javascript. But I does not means that no-one can read you scripts.
Their are again tool which make your compressed javascript files again readable :(
This question already has answers here:
Closed 12 years ago.
Possible Duplicate:
How can I obfuscate JavaScript?
I have been working on a web app in JavaScript. Nearing complete.
How do I protect me JavaScript code from someone copying it? I mean if you view my page source, it references the .js files and one could really steal these.
Should I be using something else? RoR?
Does Google Maps have a RoR API?
Your closest bet would be to use something like
A Javascript Obfucator
A Javascript Minifier
A Javascript Packer
People will still be able to steal and use your code though, it will just be harder to modify.