johndpope / LinkedinPy

Automated Linkedin inteactions (similar to https://linkedhelper.com)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

LinkedinPy

Installation:

It is recomended to use via pyenv We will be supporting python 3.6.0 and above going forward

pip install --upgrade pip
curl https://pyenv.run | bash
curl -L https://github.com/pyenv/pyenv-installer/raw/master/bin/pyenv-installer | bash
pyenv install 3.6.0
pyenv local 3.6.0
pip install --upgrade git+https://github.com/socialbotspy/SocialCommons.git
pip install -r requirements.txt

APIs:

search and connect

It sends invite to your 2nd or 3rd degree connections fetched from linkedin search

 session = LinkedinPy()

 with smart_run(session):
     session.search_and_connect(
                    query="founder",
                    connection_relationship_code="%5B%22S%22%5D",
                    city_code="%5B%22in%3A6508%22%5D",
                    school_code="%5B%2213497%22%5D"
                )

search and endorse

It simply endorses your first connections fetched from linkedin search

 session = LinkedinPy()

 with smart_run(session):
     session.search_and_endorse(
                    query="founder",
                    city_code="%5B%22in%3A6508%22%5D",
                    school_code="%5B%2213497%22%5D"
                )

search 1st connects and save to db

It's an API to backup already connected contacts to local DB(for old connections and connections not made through search_and_connect API)

 session = LinkedinPy()

 with smart_run(session):
     session.search_1stconnects_and_savetodb(
                    query="founder",
                    city_code="%5B%22in%3A6508%22%5D",
                    school_code="%5B%2213497%22%5D"
                )

withdraw old invitations

It's an API to withdraw invitation a month or more older

 session = LinkedinPy()

 with smart_run(session):
    session.withdraw_old_invitations(skip_pages=5)

How to run:

  • modify quickstart.py according to your requirements
  • python quickstart.py -u <my_linkedin_username> -p <mypssword>

How to schedule as a job:

    */10 * * * * bash /path/to/LinkedinPy/run_githubpy_only_once_for_mac.sh /path/to/LinkedinPy/quickstart.py $USERNAME $PASSWORD

Help build socialbotspy

Check out this short guide on how to start contributing!.

About

Automated Linkedin inteactions (similar to https://linkedhelper.com)

License:GNU General Public License v3.0


Languages

Language:Python 99.3%Language:Shell 0.7%