我目前有以下宏:
VERSION BUILD=9002379
TAB T=1
TAB CLOSEALLOTHERS
URL GOTO=http://www.bbc.co.uk/food/recipes/chocolate_and_orange_87739
ADD !EXTRACT {{!URLCURRENT}}
TAG POS=1 TYPE=DIV ATTR=CLASS:article-title EXTRACT=TXT
TAG POS=1 TYPE=DIV ATTR=ID:ingredients EXTRACT=TXT
ADD INTERNAL {{#NEWLINE#}}
URL GOTO=http://www.bbc.co.uk/food/recipes/secret_squirrel_cake_49338
ADD !EXTRACT {{!URLCURRENT}}
TAG POS=1 TYPE=DIV ATTR=CLASS:article-title EXTRACT=TXT
TAG POS=1 TYPE=DIV ATTR=ID:ingredients EXTRACT=TXT
SAVEAS TYPE=EXTRACT FOLDER=C:\Data_Extract_BBC FILE=Ollytest1.csv
我想要为每个我点击的URL写一个新行,但是在文件中它们将它们放在同一行。是否有命令开始新线?
这是主要问题。我的另一个问题是......我怎样才能让Imacro抓住整个网站并将其收藏在每个存在的页面上?有些页面可能没有接收。我无法在网址的网站地图上找到一个列表,而网址不仅仅是数字。如何让Imacros探索网站上的链接?
答案 0 :(得分:4)
要开始一个新行,您可以这样做:
ADD !VAR1 <BR>
答案 1 :(得分:3)
代码示例
VERSION BUILD=9002379
TAB T=1
TAB CLOSEALLOTHERS
URL GOTO=http://www.bbc.co.uk/food/recipes/chocolate_and_orange_87739
ADD !EXTRACT {{!URLCURRENT}}
TAG POS=1 TYPE=DIV ATTR=CLASS:article-title EXTRACT=TXT
TAG POS=1 TYPE=DIV ATTR=ID:ingredients EXTRACT=TXT
SAVEAS TYPE=EXTRACT FOLDER=C:\Data_Extract_BBC FILE=Ollytest1.csv
set !extract null
URL GOTO=http://www.bbc.co.uk/food/recipes/secret_squirrel_cake_49338
ADD !EXTRACT {{!URLCURRENT}}
TAG POS=1 TYPE=DIV ATTR=CLASS:article-title EXTRACT=TXT
TAG POS=1 TYPE=DIV ATTR=ID:ingredients EXTRACT=TXT
SAVEAS TYPE=EXTRACT FOLDER=C:\Data_Extract_BBC FILE=Ollytest1.csv