WhiteHatBox
Share Page
Following(0)
Partner(s)
satch3l

scraping and storing numbers

ReplyThanks 2016/01/19 07:42:33 0 0
I want to scrape a row of numbers that updates frequently. I've managed to scrape the numbers however, they are all stored as one large number (i.e 1, 2, 3, is stored as 123). How do I separate them? Alt. how do I store the last number only?
greyhat
2016/01/19 16:25:24

When you scrape the numbers, are they single digits? Or are they already grouped together?


I have not had chance to become familiar with the Regular Expression processing, but I think you would need to either use that to add a delimiter, or you could probably use the string replacement.


I'll try to look into this and update you with more in-depth details.

zhoucongcq
2016/01/19 21:29:22
You can store them in 3 different variables or 3 columns of table variable.
satch3l
2016/01/20 15:50:30

The numbers are stored on the site like

<div class="number1">1</div>
<div class="number2">2</div>
<div class="number3">3</div>


So I found this method of at least convert string to double, in the variable operate function, which will ease my pain a little bit :)


zhoucongcq
2016/01/24 22:00:18
You only can use 3 Scraper actions to scrape them and save to 3 Double/String variable.
<< < 1> >>
VerifyCode
Advanced Option