Creating an auto connect on linkedin advanced search page

linkedin script to add connections
my network on linkedin
linkedin bot
linkedin bot python
linkedin com feed /? trk guest_homepage basic_sign in submit
ttps www linkedin com mynetwork
linkedin com feed trk nav_back_to_linkedin
linkedin mynetwork

I'm looking for a way to auto connect to people found via the LinkedIn advanced search function. There's plenty of information on doing this from the 'people you may know' page but I can only find the code below that is meant to work on the advanced search page, but doesn't. Any ideas?

setInterval(function () {var x = $(‘.primary-action-button’);for (var i = 0; i < x.length; i++){if(x[i].innerHTML == "Connect") {x[i].click()}}var y = $(‘a.page-link’);y[y.length — 1].click();}, 1000)

There are a few illegal tokens in the code such as ‘,’,"," as well as the minus sign which are not the ones used for parsing JavaScript. They should be replaced with ',',",",-, respectively.

This problem usually happens when you copy text from a PDF or something which is not in pure text format.

setInterval(function () {
	var x = $('.primary-action-button');
	for (var i = 0; i < x.length; i++){
		if(x[i].innerHTML == "Connect") {
			x[i].click()
		}
	}
	var y = $('a.page-link');
	y[y.length - 1].click();
}, 1000)

How to Add 15,306,040 People to Your LinkedIn Network in Three , Optimized profiles show up higher in LinkedIn's search engine, which in turn gets you more connections. Make sure everyone is checked, then click “Add Connection(s).” of people from LinkedIn's “People You May Know” algorithm, automatically. To do this, go to the LinkedIn advanced search page. Click Advanced next to the large white search box on your top toolbar. On the top left, choose People from the list of search options. Check all four boxes in the Relationship criteria list.


Linkedin auto invite (add) script class (JS)

For use to connect to other people 1-3rd in Linkedin custom search

Hello developers, how are you?

I went behind a plugin for Chrome or Firefox that did this type of action, however I only found useless or discontinued codes.

So I decided to create my own code to do this automated work, with paging and adding automatic notes.

If you are reading this comment, the date release is 2019.06.05. The code was built to be compatible with the current version of Linkedin, but there may be a need to update as the business social network is being changed in its design / structure.

How do I use?

Simple, open your Linkedin, make a search by company, service or sector desired. Press the F12 key in Google Chrome, in the developer console paste the code and press enter.

PS: Do not forget to change the custom note message in the Linkedin (script) class.

search screen on Linkedin

(Linkedin = {
    release: '1.0.5 stable',
    data: {},
    config: {
        autoStart: true,
        inspectorSpeed: 5000,
        sendSpeed: 4000,
        pagerSpeed: 10000,
        scrollDownAuto: 600,
        debug: true,
        message: 'Your custom note message (max 300 length)'
    },
    setEvents: function () {
        this.debug('set events');
    },
    debug: function (a) {
        if (this.config.debug && typeof console === 'object') {
            console.log(a)
        }
    },
    init: function () {
        this.debug('start script');
        this.setDefaults();
        this.setEvents();
        if (this.config.autoStart) {
            this.inspect();
        }
    },
    complete: function () {
        this.debug('script complete');
    },
    sleep: function (a) {
        this.setScroll();
        var start = new Date().getTime();
        for (var i = 0; i < 1e7; i++) {
            if ((new Date().getTime() - start) > a) {
                break;
            }
        }
    },
    totalRows: function () {
        return $('.search-result').length;
    },
    compile: function () {
        this.data.pageButtons = $("button.search-result__action-button").filter(function () {
            return $.trim($(this).text()) === "Connect";
        });
        this.data.pageButtonTotal = this.data.pageButtons.length;
    },
    stop: function () {
        clearInterval(Linkedin.data.pageInterval);
        clearInterval(Linkedin.data.nextInterval);
    },
    setDefaults: function () {
        this.stop();
        this.data = {
            pageInterval: null,
            nextInterval: null,
            pageIndex: (this.data.pageIndex) ? this.data.pageIndex : 1,
            pageButtons: {},
            pageButtonIndex: 0,
            pageButtonTotal: 0,
            lockInpect: false,
            lockClick: false
        };
    },
    sendInvites: function () {
        this.compile();
        this.setScroll();
        this.debug('validing');

        if (this.data.pageButtonTotal === 0 || this.data.lockInpect === true) {

            this.sleep(this.config.sendSpeed);

            return this.nextPage();
        }

        this.sleep(this.data.speed);
        this.debug('sending invite ' + (this.data.pageButtonIndex + 1) + '/' + this.data.pageButtonTotal);

        var button = this.data.pageButtons[this.data.pageButtonIndex];

        this.debug('clicking connect');
        $(button).click();
        this.sleep(Linkedin.config.sendSpeed);

        this.debug('adding a note');
        $("button:contains('Add a note')").click();
        this.sleep(Linkedin.config.sendSpeed);

        this.debug('write a note');
        var textArea = $('textarea[id="custom-message"]');
        textArea.val(this.config.message);
        this.sleep(Linkedin.config.sendSpeed);

        this.debug('send click');
        $("button:contains('Send invitation')").click();
        this.sleep(Linkedin.config.sendSpeed);

        this.debug('close window');
        $("button:contains('Cancel')").click();
        this.sleep(Linkedin.config.sendSpeed);

        this.debug('ignore confirm mail');
        if ($('[id=email]').length) {
            $('.send-invite__cancel-btn').click();
        }

        this.sleep(Linkedin.config.sendSpeed);
        this.stop();

        if (this.closeAll() && this.data.pageButtonIndex === (this.data.pageButtonTotal - 1)) {
            return this.nextPage();
        } else if (this.data.lockInpect === false && this.data.pageButtonIndex < (this.data.pageButtonTotal - 1)) {
            this.data.pageButtonIndex++;
            return this.sendInvites();
        } else {
            this.debug('waiting page overflow down');
            this.sleep(Linkedin.config.sendSpeed);
            return this.nextPage();
        }
    },
    nextPage: function () {
        Linkedin.debug('find page');
        Linkedin.setScroll();
        Linkedin.data.lockInpect = true;
        Linkedin.data.nextInterval = setInterval(function () {
            var pagerButton = $('.artdeco-pagination__button.artdeco-pagination__button--next[id^=ember]');
            Linkedin.debug('check page links...');
            if (pagerButton.length === 0) {
                return false;
            }
            if (Linkedin.data.lockClick === false) {
                Linkedin.debug('call next page (link)');
                Linkedin.data.lockClick = true;
                pagerButton.trigger('click');
            }
            Linkedin.checkRequest();
        }, Linkedin.config.pagerSpeed);
    },
    checkRequest: function () {
        var currentPageIndex = Linkedin.getURIParam('page');
        if (currentPageIndex !== Linkedin.data.pageIndex) {
            Linkedin.data.pageIndex = currentPageIndex;
            Linkedin.setDefaults();
            Linkedin.debug('page ready');
            return Linkedin.inspect();
        }
    },
    closeAll: function () {
        if ($('.send-invite__cancel-btn').length) {
            $('.send-invite__cancel-btn').click();
        }
        return (!$('.send-invite__cancel-btn:visible').length);
    },
    setScroll: function (a) {
        $('body').click();
        window.scrollTo(0, $(window).scrollTop() + ((a) ? a : Linkedin.config.scrollDownAuto));
    },
    inspect: function () {
        this.debug('inspect elements');
        this.data.pageInterval = setInterval(function () {
            Linkedin.setScroll(Linkedin.config.scrollDownAuto);
            if (Linkedin.totalRows() >= 20 && $('.artdeco-pagination__button.artdeco-pagination__button--next[id^=ember]').length) {
                clearInterval(Linkedin.data.pageInterval);
                Linkedin.sendInvites();
            } else {
                Linkedin.debug('listening..');
            }
        }, Linkedin.config.inspectorSpeed);
    },
    getURIParam: function (name) {
        name = name.replace(/[\[]/, '\\[').replace(/[\]]/, '\\]');
        var regex = new RegExp('[\\?&]' + name + '=([^&#]*)');
        var results = regex.exec(location.search);
        return results === null ? '' : decodeURIComponent(results[1].replace(/\+/g, ' '));
    }
}).init();

How to automate connection requests on LinkedIn for a specific list , You can create a targeted search on LinkedIn or Sales Navigator. Install the extension and go to LinkedIn search results page and specify your search criteria - the tool It sounds like you are looking for a Linkedin Auto Connect Tool. Namely you can do an advanced search and it will pull up all the relevant contacts. You can create your own auto replies for specific keywords. It has built-in auto responses for birthday wishes, work anniversary and new job greetings. Become a LinkedIn Search Ninja: Advanced


looks like this is not working anymore...

Seems that LinkedIn not use jQuery anymore.

VM4213:158 Uncaught ReferenceError: $ is not defined
at Object.setScroll (<anonymous>:158:9)
at <anonymous>:164:22

Linked Booster, LinkedIn auto connect Just click “Connect All” on search page results page and Linked Booster will help you make meaningful connections� 1) Open any LinkedIn home page or your profile page. 2) In Linked Helper choose settings <Connect new 2nd contacts in search> 3) And press <Continue connect from last search page> button


How To: Use Advanced People Search on LinkedIn, If you're a B2B business, it's never been easier find new clients, connect with them Why use Advanced Search to build targeted connections on LinkedIn? When you click on the search bar, before you type, you can pick “People” filter If you search 2 or more terms, you'll automatically see results that include all of them. To add connections on LinkedIn, select My Network at the top of the screen. A list of people you may know will appear, along with any connection invitations you may have. If you see someone you'd like to connect with, simply click Connect. You can also search for someone and click Connect on their profile.


LinkedIn Sales Navigator Advanced Search [Tutorial], LinkedIn Sales Navigator Advanced Search offers the most robust set of filters to If you currently use or plan to use LinkedIn to generate new leads and exact ideal clients and then save those searches to automatically receive new Midway down the page, you will see the Sales Preferences section. Connect with us. LinkedIn’s Advanced Search is a robust tool to find people and/or companies you want to target for lead generation. But if you are using the free version of LinkedIn, you may face two problems: you’d like your search results to be more precise to help you find your ideal clients; you often hit the commercial search limit on LinkedIn.


Top 10 automation tools for LinkedIn 2019, as a simple tool to auto-connect with people from LinkedIn search, has… Consider using this tool if you build a group page as a way to� Looks like LinkedIn changed something over the last couple of weeks and the scripts on this page, except the one from @miguelmota, do not seem to work anymore and that one doesn't let you select keywords. I hope that someone who knows this script well can fix this.