Jump to content
UBot Underground

Xpath Scrape Direct Table Xpression How To


Recommended Posts

how do i directly scrape table from xpath expression

 

currently it is possible in ubot via scrape table and also exbrowser is using scrape table xbrowser

 

but say im using http post and i am scraping table, then how do i use scrape table command to directly scrape to a table?

Link to post
Share on other sites

xpath to scrape the table 
 

https://www.w3schools.com/html/html_tables.asp

 

 

//div[@class=w3-white w3-padding notranslate w3-padding-16]

or use "document text" to get html source, and then regex to get the table value


 

regex
(?<=\<table\ id\=\"customers\"\>)(.|\n)*?(?=\<\/table\>)

 

<table id="customers">   <tr>   <th>Company</th>   <th>Contact</th>   <th>Country</th>   </tr>   <tr>   <td>Alfreds Futterkiste</td>   <td>Maria Anders</td>   <td>Germany</td>   </tr>   <tr>   <td>Centro comercial Moctezuma</td>   <td>Francisco Chang</td>   <td>Mexico</td>   </tr>   <tr>   <td>Ernst Handel</td>   <td>Roland Mendel</td>   <td>Austria</td>   </tr>   <tr>   <td>Island Trading</td>   <td>Helen Bennett</td>   <td>UK</td>   </tr>   <tr>   <td>Laughing Bacchus Winecellars</td>   <td>Yoshi Tannamuri</td>   <td>Canada</td>   </tr>   <tr>   <td>Magazzini Alimentari Riuniti</td>   <td>Giovanni Rovelli</td>   <td>Italy</td>   </tr>   </table>
Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...