vb.net - Scraping from encrypted HTML -
i want scrape data vb.net form http://zvartnots.am/new/ downloaded code came white part actual table need.
<th width="93">Факт. время прибытия</th> </tr>
between these tags code need auto-scrape
</thead> <tbody id="flight_data">
this code of part need (encrypted) , here scrape
protected function gethtml(byval url string) dim rt string = "" dim wreq webrequest dim wres webresponse dim sreader streamreader try wreq = webrequest.create(url) wres = wreq.getresponse sreader = new streamreader(wres.getresponsestream) rt = sreader.readtoend sreader.close() catch ex exception end try return rt end function protected sub btnhtml_click(sender object, e eventargs) handles btnhtml.click htmltxtbox.text = gethtml(urltxtbox.text) end sub
there no such thing "encrypted" html. problem data table want scrape not on html served server, gets generated javascript after page load, making request url, , processing response.
if fire inspector , go network tab, can see these requests, , data received page javascript code, adds table.
Comments
Post a Comment