Pergunta

Hi I wanna scrap url from http://www.yelp.com/biz/pooka-pure-and-simple-orange-2#query:business but when I played script its not giving me the output in output file at location {{!COL2}}.

Please help.Your special consideration will be highly appreciated. Thank you.

VERSION BUILD=8601111 RECORDER=FX
TAB T=1
SET !DATASOURCE 130.csv
SET !DATASOURCE_COLUMNS 1
SET !DATASOURCE_LINE {{!LOOP}}
SET !EXTRACT_TEST_POPUP NO
URL GOTO={{!COL1}}
SET !ERRORIGNORE YES
TAG POS=1 TYPE=DIV ATTR=ID:bizUrl:* EXTRACT=TXT
SAVEAS TYPE=EXTRACT FOLDER=* FILE=130.csv
Foi útil?

Solução

it will not work like this because of several reasons:

  1. you can't save result to currently used source file

  2. even if you can it will other-write data in first column and not in second

  3. your source file has only one column because of SET !DATASOURCE_COLUMNS 1

  4. you are using * in file path so it will use standard download folder specified in the Paths tab of the Options dialog and not Datasources default folder used for source file.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top