Jump to content
UBot Underground

Scrape Table With Headers


Recommended Posts

The following page has a table on it. http://www.carlislefsp.com/floor-brushes-and-brooms/professional-cleaning-sweeps/3621952423. This table has a header class for the first column. When I do something like this:

 

scrape table(<class="techspecs with-caption">,&tblTemp)

 

I get only the right two columns. How do I get it to scrape the left-most column? I'm pretty new to UBot Studio and RegEx and I can't figure out how to make this table dance.

Link to post
Share on other sites

Lots of different tables in this source: 

scrape table(<class="techspecs with-caption">,&table1)
scrape table(<class="fsp-cms-product-chart-table with-caption">,&table2)
scrape table(<class="fsp-cms-product-chart-techspecs fsp-cms-product-chart-techspecs-us with--caption">,&table3)
scrape table(<class="fsp-cms-product-chart-techspecs fsp-cms-product-chart-techspecs-si with--caption">,&table4)

That gets all the separate data. 

 

You'll notice that these all share a few things in common - "with" and "caption", so if you want to add them all together into one table you can. 

scrape table(<class=r" with-*caption">,&table1)

But the table that results might not be very pretty - 

 

No matter what, you'll probably need to do some cleanup. 

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...