I
I
Ilya2017-01-23 22:24:40
JavaScript
Ilya, 2017-01-23 22:24:40

How to replace broken links to scripts when parsing a site using PhantomJS?

Hello, I'm trying to parse a page where information is loaded into the table using ajax (session schedule). It was decided to use PhantomJS. Installed it on the server. Everything works, it turned out to parse the content, but without scripts and pictures from that site. Since the addresses for scripts and pictures have changed to mine (instead of site1.ru/script1.js it became mysite.com/script1.Js).

Actually, the question is how to replace the url of loaded scripts using javascript or jquery in order to fully parse the page. I will be grateful for any help. Thanks

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question