django 1 Posted June 6, 2014 Report Share Posted June 6, 2014 as title can we add attribute to table like we have <tr class="table_header"> <td class="row_num">#</td> <td class="row_num"> </td> <td class="table_title">Title</td> <td class="type">Type</td> <td class="url" align="center">abc</td> <td class="url" align="center">abcde</td> <td class="clicks" align="center">newone</td> <td class="cpc">new10</td> <td class="actions">18000</td> <td class="sites_add"><a href="/abc">+</a></td> <td class="url">Define</td> </tr> can we add this to table seprate line for all <td class="row_num">#</td> go table row 1<td class="row_num"> </td> go to table row 2and all other on separate row possible ? Quote Link to post Share on other sites
Bot-Factory 602 Posted June 6, 2014 Report Share Posted June 6, 2014 Yes. Scrape it into a list. Different ways to scrape it. Depending if you want to use browser or html text. Scrape attributes with wildcards will work. Xpath parser and regex will work as well. So it depends on your preference and skill level. Then use "add list to table row" Dan Quote Link to post Share on other sites
django 1 Posted June 6, 2014 Author Report Share Posted June 6, 2014 ubot have scrape table feature can we scrape outer html with scrape table command ? Quote Link to post Share on other sites
Bot-Factory 602 Posted June 6, 2014 Report Share Posted June 6, 2014 Why do you want outer html? I thought you need innertext?With Scrape to table you just need to select one element from the table. Here's an example:http://wiki.ubotstudio.com/wiki/Scrape_TableDan Quote Link to post Share on other sites
django 1 Posted June 6, 2014 Author Report Share Posted June 6, 2014 thx dan i already read that i need td code of page that's why i am trying to scrap code. Quote Link to post Share on other sites
Bot-Factory 602 Posted June 6, 2014 Report Share Posted June 6, 2014 Do you have an example page?Scrape to table will only export innertext. Nothing else. Quote Link to post Share on other sites
django 1 Posted June 7, 2014 Author Report Share Posted June 7, 2014 Do you have an example page?Scrape to table will only export innertext. Nothing else. yes scrape table export innertext i saved attribute to text file and then save to table. Its working :-) Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.