Giter Site home page Giter Site logo

find-similar-linkedin-users's Introduction

find-similar-linkedin-users

Finds linked in users similar to a profile you point it to and adds them to db. Everything is running inside of a docker container, including the postgres db where the data will be.

Prerequisites:

You must have docker installed on your machine. In addition to that, you need a chrome or chrome canary browser.

.env file:

Please add an .env file to the root directory. Here's a sample one.

POSTGRES_DB_USER='postgres'
POSTGRES_DB_PASSWORD='password'
POSTGRES_DB_HOST='db'
POSTGRES_DB_NAME='linkedin'
POSTGRES_DB_PORT=5432
USER_URL_TO_START_AT=https://linkedin.com/some-user

PORT=3000

Running chrome:

From your machine's terminal, run chrome (canary) with remote debugging enabled for port 9222. For a canary running on MacOs, this is the script you would run. Google search how to run your browser on your OS:

"/Applications/Google Chrome Canary.app/Contents/MacOS/Google Chrome Canary" --remote-debugging-port=9222 --no-first-run --no-default-browser-check --user-data-dir=$(mktemp -d -t 'chrome-remote_data_dir')

This will enable you to sign in once and continue using the browser across bot restarts. We don't want bot detectors to catch us, do we now?

Once the browser is open, sign in into linked in. It's better to use an account that's not yours just in case you get detected and penalized (your account will be temporarily blocked). Please use a premium account since regular accounts have a limit on how many searches you can do per month which you will run through quite quickly; another reason to using a separate account for this bot.

Exposing the host to the docker container so we can access the running chrome

Run the following script:

docker network create -d bridge --subnet 192.168.0.0/24 --gateway 192.168.0.1 dockernet

Running the docker server:

docker-compose run --service-ports app /bin/sh

once inside:

yarn install && yarn start

find-similar-linkedin-users's People

Contributors

tareqdayya avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.