zharfan 0 Posted April 15, 2014 Report Share Posted April 15, 2014 hello guys i will ask something. <td class="vers column-version">2.1.3</td>i will scrape value(2.1.3) only. what the regex or what the attribute to scrape it? but the problem if version 2.1.3 change to higher version to 2.1.4 and i use <innertext="2.1.3"> it will error. and then the question is what the regex or attribute to scrape value in <td class="vers column-version">2.1.3</td> thanks for your help guys i hope you understand my question Quote Link to post Share on other sites
pash 504 Posted April 15, 2014 Report Share Posted April 15, 2014 (?<=version">).*?(?=<\/td>) Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted April 15, 2014 Report Share Posted April 15, 2014 Or you use this set(#version, $scrape attribute(<class="vers column-version">, "innertext"), "Global") Quote Link to post Share on other sites
zharfan 0 Posted April 15, 2014 Author Report Share Posted April 15, 2014 thanks all but doesn't work.your code kreatus scrape all version2.1.32.6.11.6.11.2.21.1.01.3.14.3.23.00.80.91.040.1.11.011.01.5.2.64.21.1.01.5.32.1.123.1.13.9.22.0.614.23.1.2.11.1.31.1.31.531.9.30.9.51.8 i want scrape value 2.1.3 only. how to way it? pash where your code paste ? what the function? Quote Link to post Share on other sites
Kreatus (Ubot Ninja) 422 Posted April 15, 2014 Report Share Posted April 15, 2014 Try this: clear list(%versions) add list to list(%versions, $scrape attribute(<class="vers column-version">, "innertext"), "Delete", "Global") set(#version, $list item(%versions, 0), "Global") Quote Link to post Share on other sites
pash 504 Posted April 15, 2014 Report Share Posted April 15, 2014 (?<=version">)2\.1\.3(?=<\/td>) Quote Link to post Share on other sites
zharfan 0 Posted April 15, 2014 Author Report Share Posted April 15, 2014 ok thanks all you guys the issue solved Quote Link to post Share on other sites
Steve 30 Posted April 15, 2014 Report Share Posted April 15, 2014 For future reference, you could scrape using an offset of the element, if the version is always in the same place of the website... 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.