© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Vladimir Kyuchukov
Web/Mobile Dev
The site which I was scraping with Node Horseman removed jQuery from their page. Now I have two options:
Question is how can I include jQuery on their page with headless browser in general?
I managed to think out a solution. I really need jQuery to be able to create more complex DOM traversing with X-PATH, so i inject jQuery on the page li so:
var script = document.createElement('script'); script.src = "ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery…"; document.getElementsByTagName('head')[0].appendChild(script);
Vladimir Kyuchukov
Web/Mobile Dev
I managed to think out a solution. I really need jQuery to be able to create more complex DOM traversing with X-PATH, so i inject jQuery on the page li so:
var script = document.createElement('script'); script.src = "ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery…"; document.getElementsByTagName('head')[0].appendChild(script);