It uploads the post on your LinkedIn profile via LinkedIn API.
- Install the requirements using pip as
pip install -r requirements.txt
. - Create an app on LinkedIn's developers account here and follow the guide here to get the access token. After getting access token, send a
GET
request defined here to get the PersonURN
from the response. - Create a
.env
file and write the follwing content into it
ACCESS_TOKEN="<your access token>"
URN="<your urn>"
- Run the script using
python post_on_linkedin.py
which will print theSUCCESS
andid
of the post shared as a JSON response. You can now check as well on your LinkedIn profile. :)
This code is available with MIT License