I want to get the source code from a Search query of Pirate Bay, I have this in my code but it doesn't return anything:
WebClient webpage = new WebClient();
string source= webpage.DownloadString("http://thepiratebay.sx/search/documentary/0/99/0");
I want to get the source code from a Search query of Pirate Bay, I have this in my code but it doesn't return anything:
WebClient webpage = new WebClient();
string source= webpage.DownloadString("http://thepiratebay.sx/search/documentary/0/99/0");
Here's a quick test:
xaml:
Code:
Your URL will return an empty string, Google on the other side, will give you the source you're looking for.
Edit : As I assumed, you need to identify like a web browser. This works with your query: