Imacros failed to extract URl, help.

Rayanture

Newbie
Joined
Apr 25, 2010
Messages
49
Reaction score
10
Anyone knows how to extract URL with imacros?

I just made imacros for social bookmarking. I works fine except for the URL extracting function.

Ive tried to use this code but it always fail

Code:
VERSION BUILD=6700624 RECORDER=FX
TAB T=1
TAB CLOSEALLOTHERS
SET !EXTRACT NULL
SET !ERRORIGNORE YES
SET !ERRORCONTINUE YES
SET !DATASOURCE pligg-submit.csv
SET !DATASOURCE_COLUMNS 5
SET !DATASOURCE_LINE 10
URL GOTO=bla...bla...bla...
TAG POS=1 TYPE=A ATTR=TXT:Login
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:form1 ATTR=ID:username CONTENT={{!COL1}}
SET !ENCRYPTION NO
TAG POS=1 TYPE=INPUT:PASSWORD FORM=NAME:form1 ATTR=ID:password CONTENT={{!COL2}}
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:form1 ATTR=NAME:Submit&&VALUE:Login
TAG POS=1 TYPE=A ATTR=TXT:Submit<SP>Story
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:form1 ATTR=ID:story_url CONTENT={{!COL3}}
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:form1 ATTR=NAME:Submit&&VALUE:Continue
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:add_story ATTR=ID:story_title CONTENT={{!COL4}}
TAG POS=1 TYPE=TEXTAREA FORM=NAME:add_story ATTR=ID:story_desc CONTENT={{!COL5}}
TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:add_story ATTR=ID:story_tags CONTENT={{!COL4}}
TAG POS=7 TYPE=INPUT:RADIO FORM=ID:add_story ATTR=ID:story_category
TAG POS=1 TYPE=INPUT:SUBMIT FORM=ID:add_story ATTR=NAME:Submit&&VALUE:Submit<SP>Story
URL GOTO=bla...bla...bla...
TAG POS=1 TYPE=A ATTR=TXT:{{!COL1}}
TAG POS=1 TYPE=A ATTR=TXT:submitted
TAG POS=1 TYPE=A ATTR=TXT:{{!COL4}}
ADD !EXTRACT {{!URLCURRENT}}
SAVEAS TYPE=EXTRACT FOLDER=* FILE=MyURL.CSV
TAG POS=1 TYPE=A ATTR=TXT:Logout

BTW I manually create the MyURL.csv file before running the imacros, is that correct?
 
Last edited:
replace with code :
ADD !EXTRACT {{!URLCURRENT}}

with this code:

SET !EXTRACT {{!URLCURRENT}}
 
put a WAIT SECONDS=3 before the extract.

WAIT SECONDS=3
ADD !EXTRACT {{!URLCURRENT}}

also enable !LOADCHECK after ERRORIGNORE

SET !LOADCHECK YES
 
Last edited:
put a WAIT SECONDS=3 before the extract.

WAIT SECONDS=3
ADD !EXTRACT {{!URLCURRENT}}

also enable !LOADCHECK after ERRORIGNORE

SET !LOADCHECK YES

Thanks dude, trying it now
 
hey... it works perfectly for me...

i used this code

Code:
VERSION BUILD=6700624 RECORDER=FX
TAB T=1
URL GOTO=http://wiki.imacros.net/Data_Extraction

ADD !EXTRACT {{!URLCURRENT}}
SAVEAS TYPE=EXTRACT FOLDER=* FILE=MyURL.CSV

URL GOTO=http://wiki.imacros.net/!URLCURRENT
ADD !EXTRACT {{!URLCURRENT}}
SAVEAS TYPE=EXTRACT FOLDER=* FILE=MyURL.CSV

i didnt have myurl.csv but that doesnt matter... i tried this script several times and it keeps adding these lines, so fix something in your script because this works

you get .csv file with url in each line...
Code:
http://wiki.imacros.net/Data_Extraction
http://wiki.imacros.net/!URLCURRENT
 
Thanks Guys, you guys are really cool.

Back to make money now
 
hey... it works perfectly for me...

i used this code

Code:
VERSION BUILD=6700624 RECORDER=FX
TAB T=1


Hi bizilux,

I have question about iMacros, can you help me mate? I know you are really know iMacros well, and i wanna learn this thing more..

My question is can we use imacros to extract twitters username name? I can extract only 1 but i don't know how to loop this usernames like user id (numbers)

Like this one  twitter dot com/Mandru28

The username is Mandru28 and we know there is millions of twitter members. Now i want to learn how to call the iMacros to loop the usernames and extract all those members usernames.

I know iMacros can do this 100% but i wanna learn the code how to make this happen.

Please help mate.. I will hit more thanks button for you soon>>> :)
 
what r u trying to do exactly ? what would be the purpose ? dont forget imacros cannot do any else/if construction this needs to be coded in vba,php etc...
 
what r u trying to do exactly ? what would be the purpose ? dont forget imacros cannot do any else/if construction this needs to be coded in vba,php etc...

Hello Neu009,

Thanks for dropping by..

What i'm trying to do is to extract each members username. We will say twiiter dot com, example only

This is a example only: twitter dot com/Mandru28, the username is Mandru28 and we know there is millions of twitter members. We need only the usernames,

vba this is also i wanted to learn more about. I just started using iMacros and I'm impressed with this automation software. I could some website with user Id (numbers Only ) but the usernames (alphabets) i dont know how to loop this thing.. :{
 
with your code try
SET !EXTRACT_TEST_POPUP NO
instead
SET !EXTRACT NULL
 
with your code try
SET !EXTRACT_TEST_POPUP NO
instead
SET !EXTRACT NULL

Here my code mate, my problem is how to crawl or loop all usernames?

VERSION BUILD=6900210
TAB T=1
TAB CLOSEALLOTHERS
SET !LOOP 1
SET !ENCRYPTION NO
SET !ERRORIGNORE YES
SET !EXTRACT_TEST_POPUP NO
'
' Change <username> in the URL below to the user whose followers you want to extract
URL GOTO=h t t ps:/ / twitter . com/mike
SET !EXTRACT_TEST_POPUP NO
TAG POS=R1 TYPE=STRONG ATTR=TXT:* EXTRACT=TXT
'
SAVEAS TYPE=EXTRACT FOLDER=d:\Test.TXT

Or do wee need to use with combined VBA script?

Any help would be highly appreciated :)
 
Or here is the plain code, working but don't know how to loop those all members

VERSION BUILD=6900210
TAB T=1
TAB CLOSEALLOTHERS
SET !LOOP 1
SET !ENCRYPTION NO
SET !ERRORIGNORE YES
SET !EXTRACT_TEST_POPUP NO
'
URL GOTO=http s:// twitter . com/nick
TAG POS=1 TYPE=DIV ATTR=CLASS:screen-name&&TXT:* EXTRACT=TXT
'
SAVEAS TYPE=EXTRACT FOLDER=D:\TEST
 
Back
Top