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

iMacros Script Questions

Discussion in 'Other Scripting Languages' started by texh89, Aug 13, 2015.

  1. texh89

    texh89 Newbie

    Joined:
    Dec 23, 2012
    Messages:
    8
    Likes Received:
    0
    hey
    I have 1000+ URLs that I want to scrape to retrieve the title info from. After trying different things, I ultimately used iMacros scripts, which I don't know anything about. Nonetheless, I managed to make a script after reading guides.

    My script is working perfectly but has few problem and have some queries
    My Script:

    Code:
    [COLOR=#000000]VERSION BUILD[/COLOR][COLOR=#000000]=[/COLOR][COLOR=#800000]9002379[/COLOR][COLOR=#000000]
    TAB T[/COLOR][COLOR=#000000]=[/COLOR][COLOR=#800000]1[/COLOR][COLOR=#000000]
    TAB CLOSEALLOTHERS
    
    SET [/COLOR][COLOR=#000000]![/COLOR][COLOR=#000000]TIMEOUT_STEP [/COLOR][COLOR=#800000]1[/COLOR][COLOR=#000000]
    SET [/COLOR][COLOR=#000000]![/COLOR][COLOR=#000000]ERRORIGNORE YES
    SET [/COLOR][COLOR=#000000]![/COLOR][COLOR=#000000]EXTRACT_TEST_POPUP NO
    URL GOTO[/COLOR][COLOR=#000000]=[U]url link[/U][/COLOR][COLOR=#000000]
    ADD [/COLOR][COLOR=#000000]![/COLOR][COLOR=#000000]EXTRACT [/COLOR][COLOR=#000000]{{![/COLOR][COLOR=#000000]URLCURRENT[/COLOR][COLOR=#000000]}}[/COLOR][COLOR=#000000]
    TAG POS[/COLOR][COLOR=#000000]=[/COLOR][COLOR=#800000]1[/COLOR][COLOR=#000000] TYPE[/COLOR][COLOR=#000000]=[/COLOR][COLOR=#000000]TITLE ATTR[/COLOR][COLOR=#000000]=*[/COLOR][COLOR=#000000] EXTRACT[/COLOR][COLOR=#000000]=[/COLOR][COLOR=#000000]TXT
    SAVEAS TYPE[/COLOR][COLOR=#000000]=[/COLOR][COLOR=#000000]EXTRACT FOLDER[/COLOR][COLOR=#000000]=[/COLOR][COLOR=#000000]d[/COLOR][COLOR=#000000]:/[/COLOR][COLOR=#000000] FILE[/COLOR][COLOR=#000000]=[/COLOR][COLOR=#000000]links[/COLOR][COLOR=#000000].[/COLOR][COLOR=#000000]txt
    WAIT SECONDS[/COLOR][COLOR=#000000]=[/COLOR][COLOR=#800000]1[/COLOR][COLOR=#000000]
    
    SET [/COLOR][COLOR=#000000]![/COLOR][COLOR=#000000]TIMEOUT_STEP [/COLOR][COLOR=#800000]1[/COLOR][COLOR=#000000]
    SET [/COLOR][COLOR=#000000]![/COLOR][COLOR=#000000]ERRORIGNORE YES
    SET [/COLOR][COLOR=#000000]![/COLOR][COLOR=#000000]EXTRACT_TEST_POPUP NO
    URL GOTO[/COLOR][COLOR=#000000]=[U]url link[/U][/COLOR][COLOR=#000000]
    ADD [/COLOR][COLOR=#000000]![/COLOR][COLOR=#000000]EXTRACT [/COLOR][COLOR=#000000]{{![/COLOR][COLOR=#000000]URLCURRENT[/COLOR][COLOR=#000000]}}[/COLOR][COLOR=#000000]
    TAG POS[/COLOR][COLOR=#000000]=[/COLOR][COLOR=#800000]1[/COLOR][COLOR=#000000] TYPE[/COLOR][COLOR=#000000]=[/COLOR][COLOR=#000000]TITLE ATTR[/COLOR][COLOR=#000000]=*[/COLOR][COLOR=#000000] EXTRACT[/COLOR][COLOR=#000000]=[/COLOR][COLOR=#000000]TXT
    SAVEAS TYPE[/COLOR][COLOR=#000000]=[/COLOR][COLOR=#000000]EXTRACT FOLDER[/COLOR][COLOR=#000000]=[/COLOR][COLOR=#000000]d[/COLOR][COLOR=#000000]:/[/COLOR][COLOR=#000000] FILE[/COLOR][COLOR=#000000]=[/COLOR][COLOR=#000000]links[/COLOR][COLOR=#000000].[/COLOR][COLOR=#000000]txt[/COLOR]
    what i want to ask is this
    1- do i have to use SET !TIMEOUT_STEP 1, SET !ERRORIGNORE YES, SET !EXTRACT_TEST_POPUP NO for every URL or using these cmds on top only once will do?
    2- even with SET !EXTRACT_TEST_POPUP NO i get this error once 8UP9uMD.jpg in the begining, how to remove that??
    3- out of many URLs i have a few that are dead so imacros wait till 60s before going to next url.. how to cut down the time to 10s for dead or non responding URLs? FGIXElq.jpg <-- how to make it 10s limit
    4- the script i made is for 1 url. now how can i multiple this script 1000+ times all with different urls that i have in a specific txt file. so either it makes this same script for all the urls or it auto leeches urls from a txt file while leeching like when first url is leeched it finds the next url from url txt file and auto inserts into this script so it can run all my urls and at the end i have results of all my urls
    5- the final result i get is

    http_google.co m,Google
    how can i change is "," after URL to a tab or a double space so my results look something like this

    http_google.co m Google

    kindly reply to all my queries and if possible redo my script so i would know where to put which code

    P.S sorry if my post wasnt understandable enuf because i wasnt allowed to post links so i have to delete and redo alot of text
    i have also posted my post here for better visual
    dpaste.co m/3XG9N9T.txt (remove the space)

    i know its nothing but im willing to give a VPN acc of good duration to the helper who can fix my problems :)

    thanks!
     
    Last edited: Aug 13, 2015
  2. Worm99

    Worm99 Power Member

    Joined:
    Jan 12, 2012
    Messages:
    528
    Likes Received:
    312
    Location:
    Multiverse
    Use this code
    SET !TIMEOUT_PAGE 15 . Change 15 to whatever you want.

    Use csv file and fetch it with imacro. Google to find out how. Use it with LOOP function
     
  3. texh89

    texh89 Newbie

    Joined:
    Dec 23, 2012
    Messages:
    8
    Likes Received:
    0
    ys im trying the loop function but its not working.. can u please make my script to loop and with timeout_page plsss?
     
  4. Worm99

    Worm99 Power Member

    Joined:
    Jan 12, 2012
    Messages:
    528
    Likes Received:
    312
    Location:
    Multiverse
    Code:
    VERSION BUILD=9002379TAB T=1
    TAB CLOSEALLOTHERS
    SET !TIMEOUT_PAGE 10
    SET !ERRORIGNORE YES
    ET !DATASOURCE YOURFLEINCSVFORMAT.csv
    SET !EXTRACT_TEST_POPUP NO
    SET !DATASOURCE_LINE {{!LOOP}}
    URL GOTO={{!COL1}}
    ADD !EXTRACT {{!URLCURRENT}}
    TAG POS=1 TYPE=TITLE ATTR=* EXTRACT=TXT
    SAVEAS TYPE=EXTRACT FOLDER=d:/ FILE=links.txt
    WAIT SECONDS=1
    Just rename your txt file with links to go to. Make it a csv file. Place it into your folder Datasources

    http://www.blackhatworld.com/blackhat-seo/attachment.php?attachmentid=68536&d=1438724037

    http://www.blackhatworld.com/blackhat-seo/attachment.php?attachmentid=68537&d=1438724077

    Change LOOP in your imacro to how many you want