0

I'm trying to get the sourcecode of a remote website. The problem is this website execute a javascript in fist time. This javascript create a cookie and then redirect to the final website. If I try to get the sourcecode in a new URL object and read it, the only that I've got is this javascript instead of the sourcecode of final webpage.

My question is how I can load the URL, then execute this javascript and finally get the sourcecode of the final website?

Or even how I can wait some seconds before trying to get the sourcecode avoiding get the javascript that creates de cookie and then redirects to the main website?

Thanks for all!

Bartok
  • 1
  • 1

0 Answers0