c# - Scraping based on dropdown list -


#document     <html>         <head></head>         <body bgcolor="f2f2f2" leftmargin="0" topmargin="5">           <style>  ...           </style>             <table width="100%"">                 <tbody>                     <tr></tr>                     <tr>                         <form id="frmfindparts"></form>                         <td>                             <select id="selyear"                              onchange="document.getelementbyid('frmfindparts').                             submit();" name="year">                                 <option value="">2015</option>                          </td>                        </tr>                       <tr>...</tr></tbody></table> 

i need xapth should scrape value 2015

here code when exceuting getting null values tags variable

          var html = pageretriever.readfromserver(pqi.url, false);             var htmldoc = new htmldocument();             htmldoc.loadhtml(html); var tags = htmldoc.documentnode.selectnodes("//select[@id='selyear'] //option"); 

here link getting null value var tags. exact location link . have scrape droppdownlist year 2014 1940

the html-content want select not directly present in described url, loaded in iframe. need analyze this url.


Comments

Popular posts from this blog

javascript - RequestAnimationFrame not working when exiting fullscreen switching space on Safari -

Python ctypes access violation with const pointer arguments -