1

From a Windows WinForms C# application I am trying to read a table from the web site (first page):

http://www.freeproxylists.net/?c=&pt=&pr=HTTP&a%5B%5D=1&a%5B%5D=2&u=40

I use Html Agility Pack to do this:

WebClient webClient = new WebClient();
string page = webClient.DownloadString("http://www.freeproxylists.net/?c=&pt=&pr=HTTP&a%5B%5D=1&a%5B%5D=2&u=40");

HtmlAgilityPack.HtmlDocument doc = new HtmlAgilityPack.HtmlDocument();
doc.LoadHtml(page);

But doc object does not contains the table I want. I would like to combine this with LINQ, something similiar doing here.

What I am trying to do is to read all the table into a list which each item of this list is another list which contains the items below:

IP Address, Port, Protocol, Anonymity, Country, Region, City, Uptime

How can I do this?

Willy
  • 9,848
  • 22
  • 141
  • 284
  • If you check the downloaded content from WebClient you will see that table is not there. You first need to find out how this data is loaded into page. – Aleksandr Ivanov May 19 '18 at 22:54
  • @AleksandrIvanov Yes, so how to do in order to read the table I want? It seems like I have to wait for page loaded but I do not know how to do it. – Willy May 20 '18 at 02:10
  • I guess it is loaded with iframe or javascript. You need to figure it out. – Aleksandr Ivanov May 20 '18 at 17:13
  • @AleksandrIvanov How could I know if it is loaded with iframe or javascript? And in case it is loaded with iframe or javascript, how can I retrieve the list of proxies from C#? – Willy May 23 '18 at 21:24
  • You just go and start digging ;) – Aleksandr Ivanov May 24 '18 at 14:57
  • @AleksandrIvanov when I am trying to open your link I got strange captcha screen: [**screenshot link**](https://i.imgur.com/DzT6ldb.png) . Any idea why is this happening? – Andrey Kotov Jun 01 '18 at 17:57

0 Answers0