Here is the solution:
Method A: Use the comma to identify the number we need. This macro would fail if we have less then 1000 results.
Code: Select all
URL GOTO=http://www.google.com/
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:f ATTR=NAME:q CONTENT=solar<SP>cells
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:f ATTR=NAME:btnG
TAG POS=1 TYPE=B ATTR=TXT:*,* EXTRACT=TXT
Code: Select all
URL GOTO=http://www.google.com/
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:f ATTR=NAME:q CONTENT=solar<SP>cells
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:f ATTR=NAME:btnG
TAG POS=1 TYPE=P ATTR=TXT:*Results*
TAG POS=R3 TYPE=B ATTR=TXT:* EXTRACT=TXT
(1) Web Scraping (General information)
(2) Extract with relative Positioning
Note: In this case we do not recommend to use simply a specific POS statement as suggested by the extraction wizard:
Code: Select all
TAG POS=5 TYPE=B ATTR=TXT:* EXTRACT=TXT