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

paying 4$ for simple imacro link extractor

Discussion in 'Hire a Freelancer' started by Vekkata, Sep 5, 2014.

  1. Vekkata

    Vekkata Regular Member

    Joined:
    Nov 3, 2012
    Messages:
    492
    Likes Received:
    263
  2. LeanLow

    LeanLow Jr. VIP Jr. VIP

    Joined:
    Jun 15, 2013
    Messages:
    842
    Likes Received:
    229
    Location:
    Doomsday Vault
    Do you think that someone who know how to do that, would do that for 4$ ?
     
  3. Pilfer7

    Pilfer7 Regular Member

    Joined:
    Sep 3, 2012
    Messages:
    383
    Likes Received:
    194
    Location:
    Las Vegas
    Home Page:
    I got a guy on fiverr that does this type of thing for $5, well I dont know if yours would cost only $5 because its long as hell

    PM me if u want his info
     
  4. Vekkata

    Vekkata Regular Member

    Joined:
    Nov 3, 2012
    Messages:
    492
    Likes Received:
    263
    Pff, this is 10 line code.

    nevermind, will do it myself.
     
  5. handmadebots

    handmadebots Senior Member

    Joined:
    Nov 8, 2012
    Messages:
    905
    Likes Received:
    204
    Home Page:
    Requirements:
    - Python2.7
    - bs4
    - requests
    Code:
    from requests import session
    from bs4 import BeautifulSoup as BS
    import os
    
    
    def banner():
        print("______________________________________________________________________________")
        print("  _____      ___     __              ____        _                            ")
        print(" / ____|    | \ \   / /             |  _ \      | |                           ")
        print("| |  __  ___| |\ \_/ /__  _   _ _ __| |_) | ___ | |_ ___   ___ ___  _ __ ___  ")
        print("| | |_ |/ _ \ __\   / _ \| | | | '__|  _  / _ \| __/ __| / __/ _ \| '_ ` _ \ ")
        print("| |__| |  __/ |_ | | (_) | |_| | |  | |_) | (_) | |_\__ \| (_| (_) | | | | | |")
        print(" \_____|\___|\__||_|\___/ \__,_|_|  |____/ \___/ \__|___(_)___\___/|_| |_| |_|")
        print("______________________________________________________________________________")
        print("\n")
     
    
    profilesFile = os.getcwd() + '/profiles.txt'
    
    banner()
    
    pagesNo = raw_input('[+] Give number of pages: ')
    pagesNo = int(pagesNo)
    pagesNo += 1
    with session() as s:
        for pageNo in range(1, pagesNo):
            newLinks = []
            print '[+] On page: ' + str(pageNo)
            source = s.get('http://www.amazon.com/review/top-reviewers/ref=cm_cr_tr_link_2?ie=UTF8&page=' + str(pageNo)).text
            soup = BS(source)
            table = soup.find('table', {'class':'crDataGrid'})
            links = table.findAll('a')
            for link in links:
                try:
                    realLink = link['href']
                    if 'profile' in realLink:
                        newLinks.append(realLink)
                except:
                    pass
            
            newLinks2 = list(set(newLinks))
            with open(profilesFile,'a') as f:
                for l in newLinks2:
                    f.write(l + '\n')
    
    print '[+] Done!'
    
    
    
    
     
    • Thanks Thanks x 1
  6. Pilfer7

    Pilfer7 Regular Member

    Joined:
    Sep 3, 2012
    Messages:
    383
    Likes Received:
    194
    Location:
    Las Vegas
    Home Page:
    does that really work? frickin awesome if it does

    +1 and a Hip Hip hooray for handmadebots
     
    • Thanks Thanks x 1
  7. Conor

    Conor Jr. VIP Jr. VIP

    Joined:
    Nov 7, 2012
    Messages:
    3,373
    Likes Received:
    5,439
    Gender:
    Male
    Location:
    South Africa
    Home Page:
    This should work in Firefox:

    Code:
    VERSION BUILD=8820413 RECORDER=FX
    SET !EXTRACT_TEST_POPUP NO
    TAG POS=1 TYPE=A ATTR=HREF:*name EXTRACT=HREF
    SAVEAS TYPE=EXTRACT FOLDER=D:\Documents\iMacros\DataSources FILE=amazonex.csv
    TAG POS=R1 TYPE=A ATTR=HREF:*name EXTRACT=HREF
    SAVEAS TYPE=EXTRACT FOLDER=D:\Documents\iMacros\DataSources FILE=amazonex.csv
    TAG POS=R1 TYPE=A ATTR=HREF:*name EXTRACT=HREF
    SAVEAS TYPE=EXTRACT FOLDER=D:\Documents\iMacros\DataSources FILE=amazonex.csv
    TAG POS=R1 TYPE=A ATTR=HREF:*name EXTRACT=HREF
    SAVEAS TYPE=EXTRACT FOLDER=D:\Documents\iMacros\DataSources FILE=amazonex.csv
    TAG POS=R1 TYPE=A ATTR=HREF:*name EXTRACT=HREF
    SAVEAS TYPE=EXTRACT FOLDER=D:\Documents\iMacros\DataSources FILE=amazonex.csv
    TAG POS=R1 TYPE=A ATTR=HREF:*name EXTRACT=HREF
    SAVEAS TYPE=EXTRACT FOLDER=D:\Documents\iMacros\DataSources FILE=amazonex.csv
    TAG POS=R1 TYPE=A ATTR=HREF:*name EXTRACT=HREF
    SAVEAS TYPE=EXTRACT FOLDER=D:\Documents\iMacros\DataSources FILE=amazonex.csv
    TAG POS=R1 TYPE=A ATTR=HREF:*name EXTRACT=HREF
    SAVEAS TYPE=EXTRACT FOLDER=D:\Documents\iMacros\DataSources FILE=amazonex.csv
    TAG POS=R1 TYPE=A ATTR=HREF:*name EXTRACT=HREF
    SAVEAS TYPE=EXTRACT FOLDER=D:\Documents\iMacros\DataSources FILE=amazonex.csv
    TAG POS=R1 TYPE=A ATTR=HREF:*name EXTRACT=HREF
    SAVEAS TYPE=EXTRACT FOLDER=D:\Documents\iMacros\DataSources FILE=amazonex.csv
    TAG POS=2 TYPE=A ATTR=TXT:Next<SP>┬╗
    
    Just put it on loop and go have your lunch.
     
    • Thanks Thanks x 1
    Last edited: Sep 5, 2014
  8. handmadebots

    handmadebots Senior Member

    Joined:
    Nov 8, 2012
    Messages:
    905
    Likes Received:
    204
    Home Page:
    yep, it works :)
     
    • Thanks Thanks x 2
  9. nitemare

    nitemare Newbie

    Joined:
    Jan 30, 2015
    Messages:
    8
    Likes Received:
    0
    Occupation:
    War Hero
    Location:
    Sunny Florida
    I'm totally confused on what exactly this would do for you/business? Is it using the reviews to input on your site? :hmmmm2:
     
  10. YourMoneyButton

    YourMoneyButton Jr. VIP Jr. VIP Premium Member

    Joined:
    Dec 1, 2013
    Messages:
    957
    Likes Received:
    207
    Location:
    Automating The Web
    Guessing he's trying to buy reviews to supply to a 3rd party.
     
  11. poliyon

    poliyon Registered Member

    Joined:
    Jul 12, 2013
    Messages:
    83
    Likes Received:
    2
    I can do for that amount if you still interested. send me pm