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
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"
)
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"
)
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"
)
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)
- modify
quickstart.py
according to your requirements python quickstart.py -u <my_linkedin_username> -p <mypssword>
*/10 * * * * bash /path/to/LinkedinPy/run_githubpy_only_once_for_mac.sh /path/to/LinkedinPy/quickstart.py $USERNAME $PASSWORD
Check out this short guide on how to start contributing!.