1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Imacros failed to extract URl, help.

Discussion in 'Black Hat SEO Tools' started by Rayanture, Jul 17, 2010.

  1. Rayanture

    Rayanture Newbie

    Joined:
    Apr 25, 2010
    Messages:
    49
    Likes Received:
    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: Jul 17, 2010
  2. e-service

    e-service Regular Member

    Joined:
    Mar 1, 2009
    Messages:
    200
    Likes Received:
    30
    edit with following code:

    Code:
    SET !EXTRACT {{!URLCURRENT}}
     
  3. Rayanture

    Rayanture Newbie

    Joined:
    Apr 25, 2010
    Messages:
    49
    Likes Received:
    10
    Tried that one, didn't work
     
  4. e-service

    e-service Regular Member

    Joined:
    Mar 1, 2009
    Messages:
    200
    Likes Received:
    30
    replace with code :
    ADD !EXTRACT {{!URLCURRENT}}

    with this code:

    SET !EXTRACT {{!URLCURRENT}}
     
  5. Rayanture

    Rayanture Newbie

    Joined:
    Apr 25, 2010
    Messages:
    49
    Likes Received:
    10
    Yes I did it but still not working
     
  6. e-service

    e-service Regular Member

    Joined:
    Mar 1, 2009
    Messages:
    200
    Likes Received:
    30
    So I have no idea :D
     
  7. demoniox

    demoniox Registered Member

    Joined:
    Mar 5, 2007
    Messages:
    98
    Likes Received:
    83
    put a WAIT SECONDS=3 before the extract.

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

    also enable !LOADCHECK after ERRORIGNORE

    SET !LOADCHECK YES
     
    • Thanks Thanks x 1
    Last edited: Jul 19, 2010
  8. Rayanture

    Rayanture Newbie

    Joined:
    Apr 25, 2010
    Messages:
    49
    Likes Received:
    10
    Thanks dude, trying it now
     
  9. bizilux

    bizilux Senior Member

    Joined:
    Apr 19, 2009
    Messages:
    896
    Likes Received:
    231
    Occupation:
    IM
    Location:
    slovenia
    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 Thanks x 1
  10. bl441

    bl441 Newbie

    Joined:
    Nov 23, 2008
    Messages:
    11
    Likes Received:
    1
    The WAIT function is very important with imacros.
     
  11. Rayanture

    Rayanture Newbie

    Joined:
    Apr 25, 2010
    Messages:
    49
    Likes Received:
    10
    Thanks Guys, you guys are really cool.

    Back to make money now
     
  12. purewealthinc

    purewealthinc Regular Member

    Joined:
    May 3, 2010
    Messages:
    427
    Likes Received:
    383
    Occupation:
    Web Fishing
    Location:
    World Wide Web City
     
  13. neu009

    neu009 Jr. VIP Jr. VIP Premium Member

    Joined:
    Jul 29, 2009
    Messages:
    1,020
    Likes Received:
    272
    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...
     
  14. purewealthinc

    purewealthinc Regular Member

    Joined:
    May 3, 2010
    Messages:
    427
    Likes Received:
    383
    Occupation:
    Web Fishing
    Location:
    World Wide Web City
    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.. :{
     
  15. ziqziq

    ziqziq Newbie

    Joined:
    Jul 18, 2010
    Messages:
    18
    Likes Received:
    0
    with your code try
    SET !EXTRACT_TEST_POPUP NO
    instead
    SET !EXTRACT NULL
     
  16. purewealthinc

    purewealthinc Regular Member

    Joined:
    May 3, 2010
    Messages:
    427
    Likes Received:
    383
    Occupation:
    Web Fishing
    Location:
    World Wide Web City
    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 :)
     
  17. purewealthinc

    purewealthinc Regular Member

    Joined:
    May 3, 2010
    Messages:
    427
    Likes Received:
    383
    Occupation:
    Web Fishing
    Location:
    World Wide Web City
    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