vendredi 29 avril 2016

C# Read Webpage After Redirect

I am writing a script to read data from steam webpages to find out about sales on games.

It is pretty simple. I am using C# using

        WebClient web = new WebClient();


        String html = web.DownloadString("https:/http://store.steampowered.com/app/#####");

Unfortunately, some pages have an age verification before you can continue, such as this page.

Is there any way to have my code set the date to an older year, then proceed to get the following page?
Would it be easier for me to go through the age verification on my own once first, and somehow pass my cookies through the code?

Is this easier in another language? My code isn't that complex, so I'd be willing to move it to something else. I'd prefer to work in C#, Java, or Python.




Aucun commentaire:

Enregistrer un commentaire