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

Python Linked In Viewer Bot

Discussion in 'Black Hat SEO Tools' started by deathass01, Jan 9, 2017.

  1. deathass01

    deathass01 Power Member

    Joined:
    Oct 16, 2014
    Messages:
    627
    Likes Received:
    229
    Occupation:
    Professional Watermelon Seed Spitter
    Location:
    USA
    Hey Guys so this is a python script that you can run to help increase your profile views/leads :)

    Code:
    //LinkedBot.py
    import argparse, os, time
    import urlparse, random
    from selenium import webdriver
    from selenium.webdriver.common.keys import Keys
    from bs4 import BeautifulSoup
    
    def getPeopleLinks(page):
        links = []
        for link in page.find_all('a'):
            url = link.get('href')
            if url:
                if 'profile/view?id=' in url:
                    links.append(url)
        return links
    
    def getJobLinks(page):
        links = []
        for link in page.find_all('a'):
            url = link.get('href')
            if url:       
                if '/jobs' in url:
                    links.append(url)
        return links
    
    def getID(url):
        pUrl = urlparse.urlparse(url)
        return urlparse.parse_qs(pUrl.query)['id'][0]
    
    
    def ViewBot(browser):
        visited = {}
        pList = []
        count = 0
        while True:
            #sleep to make sure everything loads, add random to make us look human.
            time.sleep(random.uniform(3.5,6.9))
            page = BeautifulSoup(browser.page_source)
            people = getPeopleLinks(page)
            if people:
                for person in people:
                    ID = getID(person)
                    if ID not in visited:
                        pList.append(person)
                        visited[ID] = 1
            if pList: #if there is people to look at look at them
                person = pList.pop()
                browser.get(person)
                count += 1
            else: #otherwise find people via the job pages
                jobs = getJobLinks(page)
                if jobs:
                    job = random.choice(jobs)
                    root = 'http://www.linkedin.com'
                    roots = 'https://www.linkedin.com'
                    if root not in job or roots not in job:
                        job = 'https://www.linkedin.com'+job
                    browser.get(job)
                else:
                    print "I'm Lost Exiting"
                    break
    
            #Output (Make option for this)           
            print "[+] "+browser.title+" Visited! \n("\
                +str(count)+"/"+str(len(pList))+") Visited/Queue)"
                        
    
    def Main():
        parser = argparse.ArgumentParser()
        parser.add_argument("email", help="linkedin email")
        parser.add_argument("password", help="linkedin password")
        args = parser.parse_args()
    
        browser = webdriver.Firefox()
    
        browser.get("https://linkedin.com/uas/login")
    
    
        emailElement = browser.find_element_by_id("session_key-login")
        emailElement.send_keys(args.email)
        passElement = browser.find_element_by_id("session_password-login")
        passElement.send_keys(args.password)
        passElement.submit()
    
        os.system('clear')
        print "[+] Success! Logged In, Bot Starting!"
        ViewBot(browser)
        browser.close()
    
    if __name__ == '__main__':
        Main()
    Ok so to run it all you need to do is cd to the folder you created the .py folder in and run this
    python scriptname.py [email protected] password

    Good luck :)
     
  2. afidegnum

    afidegnum Newbie

    Joined:
    Jan 16, 2010
    Messages:
    26
    Likes Received:
    0
    Wow, i m looking for something like this, thanks,
     
  3. badasscoder

    badasscoder Jr. VIP Jr. VIP

    Joined:
    Sep 19, 2016
    Messages:
    429
    Likes Received:
    104
    Gender:
    Male
    Why sharing the script? Compile it into an exe... It will be a lot more easier for people.
     
  4. deathass01

    deathass01 Power Member

    Joined:
    Oct 16, 2014
    Messages:
    627
    Likes Received:
    229
    Occupation:
    Professional Watermelon Seed Spitter
    Location:
    USA
    I'm sorry, I don't know how to do that >.< so this is all I have
     
  5. Sunny A. Pt.

    Sunny A. Pt. BANNED BANNED

    Joined:
    Oct 8, 2016
    Messages:
    219
    Likes Received:
    18
    Gender:
    Male
    In which profile it will increase traffic ?
     
  6. deathass01

    deathass01 Power Member

    Joined:
    Oct 16, 2014
    Messages:
    627
    Likes Received:
    229
    Occupation:
    Professional Watermelon Seed Spitter
    Location:
    USA
    Whatever one you run it on, I run it on mine and it brings more viewers to my profile
     
  7. Sunny A. Pt.

    Sunny A. Pt. BANNED BANNED

    Joined:
    Oct 8, 2016
    Messages:
    219
    Likes Received:
    18
    Gender:
    Male
    Profile means
    Facebook profile

    Or AdWords campaign ?
     
  8. deathass01

    deathass01 Power Member

    Joined:
    Oct 16, 2014
    Messages:
    627
    Likes Received:
    229
    Occupation:
    Professional Watermelon Seed Spitter
    Location:
    USA

    "Python Linked In Viewer Bot"
     
  9. badasscoder

    badasscoder Jr. VIP Jr. VIP

    Joined:
    Sep 19, 2016
    Messages:
    429
    Likes Received:
    104
    Gender:
    Male
    Just in case that helps, you can try out PyInstaller :)
     
  10. badasscoder

    badasscoder Jr. VIP Jr. VIP

    Joined:
    Sep 19, 2016
    Messages:
    429
    Likes Received:
    104
    Gender:
    Male
    So basically, it randomly visits people and job pages with a hope that people will return the favors by visiting back your profile!

    Is that what it does?
     
  11. deathass01

    deathass01 Power Member

    Joined:
    Oct 16, 2014
    Messages:
    627
    Likes Received:
    229
    Occupation:
    Professional Watermelon Seed Spitter
    Location:
    USA
    Yeah it's the same concept as the followback methods used in many twitter/insta bots :)
     
  12. badasscoder

    badasscoder Jr. VIP Jr. VIP

    Joined:
    Sep 19, 2016
    Messages:
    429
    Likes Received:
    104
    Gender:
    Male
    Following is a bit different than just visiting the profile!

    But that does make a bit of a sense for LinkedIn because you get notifications for the profile visitors on LinkedIn. So it's actually a nice little utility!

    Does it work infinitely or LinkedIn blocks it after a while. Will people keep getting notifications if I leave it running for the whole night?
     
  13. deathass01

    deathass01 Power Member

    Joined:
    Oct 16, 2014
    Messages:
    627
    Likes Received:
    229
    Occupation:
    Professional Watermelon Seed Spitter
    Location:
    USA
    You can run it for about 600-800 profile views, it works better if you have more contacts as it just brances out to their mutuals too! The whole night is a bit excessive ;) linked in might get suspicious, maybe if you alter the delays of views it could help with the timeouts :)
     
  14. afidegnum

    afidegnum Newbie

    Joined:
    Jan 16, 2010
    Messages:
    26
    Likes Received:
    0
    Why do you need compiling? the script can be run directly by adding few entries into the Environment Variables, with this you can easily tune in or modify few changes than the executable format.
     
  15. rockstarrr

    rockstarrr Regular Member

    Joined:
    Jul 25, 2012
    Messages:
    256
    Likes Received:
    21
    Good job. Let me know something... i search for a python script wich is visiting a site for 10 minutes and then changing the proxy and visit it again. Do you creat something like that?
     
  16. 4Panda

    4Panda Regular Member

    Joined:
    Oct 14, 2011
    Messages:
    269
    Likes Received:
    26
    This (viewer bot) is a good way to get profile views. Unfortunately, don't think other bots are doing it.Mass following people seems ineffective when the follow button on other people's profile is seldom available (not exactly why, maybe someone can share).
     
  17. demienles

    demienles Jr. VIP Jr. VIP Premium Member

    Joined:
    Jul 28, 2015
    Messages:
    117
    Likes Received:
    16
    Works great. Thank you!
     
  18. AryanAry

    AryanAry BANNED BANNED

    Joined:
    Apr 4, 2017
    Messages:
    74
    Likes Received:
    6
    Gender:
    Male
    i needs some coustom python script , so you can please?