简体   繁体   中英

Unable to scrape data from a live graph

I want to scrape information from this live graph on "www.signal-binary.com/en". I tried recording the event on iMacros. It records, but when i add "EXTRACT=TXT" to pull information it is not working.

this is the recorded bit:

VERSION BUILD=844 RECORDER=CR
URL GOTO=http://signal-binary.com/en/
TAG POS=1 TYPE=TEXT ATTR=TXT:1.07927<SP>WAIT

And here is the command i am using to scrape the data:

VERSION BUILD=844 RECORDER=CR
URL GOTO=http://signal-binary.com/en/
TAG POS=1 TYPE=TEXT ATTR=* EXTRACT=TXT

I have also modified the script and tried the following with no luck:

VERSION BUILD=844 RECORDER=CR
SET !ERRORIGNORE YES
TAG POS={{!LOOP}} TYPE=RECT ATTR=CLASS:rvalue EXTRACT=TXT
PROMPT {{!EXTRACT}}

Please look into the red highlighted box on the image attachment for understanding my query better.

需要在红色突出显示的框内抓取信息

Then perhaps the following way will be helpful to you:

SEARCH SOURCE=REGEXP:"(\\d+\\.\\d+ WAIT)" EXTRACT=$1
PROMPT {{!EXTRACT}}

Why didn't you guess to add the wildcard * ?

TAG POS=1 TYPE=TEXT ATTR=TXT:*WAIT EXTRACT=TXT

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM