how iMacros can extract the data without having attribute on element? -


i want extract data: name, email, phone, date, city
here html sample code:

<tbody>     <tr class="grid-row">             <td>jimmy shark</td>             <td>jshark@gmail.com</td>             <td>082166883333</td>             <td>07/13/15, 07:23 am</td>             <td></td>         </tr>     <tr class="odd grid-row">             <td>denny large</td>             <td>large.denny@gmail.com</td>             <td>08575510121</td>             <td>07/09/16, 11:55 pm</td>             <td></td>     </tr>     <more , repeated> </tbody> 

start following macro , correct meet goal:

set !errorignore yes set !timeout_step 0 set !extract_test_popup no  tag xpath="//tr[@class='grid-row'][{{!loop}}]/td[1]" extract=txt tag xpath="//tr[@class='grid-row'][{{!loop}}]/td[2]" extract=txt tag xpath="//tr[@class='grid-row'][{{!loop}}]/td[3]" extract=txt tag xpath="//tr[@class='grid-row'][{{!loop}}]/td[4]" extract=txt tag xpath="//tr[@class='grid-row'][{{!loop}}]/td[5]" extract=txt prompt {{!extract}} set !extract null  tag xpath="//tr[@class='odd grid-row'][{{!loop}}]/td[1]" extract=txt tag xpath="//tr[@class='odd grid-row'][{{!loop}}]/td[2]" extract=txt tag xpath="//tr[@class='odd grid-row'][{{!loop}}]/td[3]" extract=txt tag xpath="//tr[@class='odd grid-row'][{{!loop}}]/td[4]" extract=txt tag xpath="//tr[@class='odd grid-row'][{{!loop}}]/td[5]" extract=txt prompt {{!extract}} 

Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -