https://github.com/gutsytechster/linkedin-post
It uploads the post on your LinkedIn profile via LinkedIn API. :)
https://github.com/gutsytechster/linkedin-post
linkedin linkedin-api
Last synced: about 1 year ago
JSON representation
It uploads the post on your LinkedIn profile via LinkedIn API. :)
- Host: GitHub
- URL: https://github.com/gutsytechster/linkedin-post
- Owner: gutsytechster
- License: mit
- Created: 2019-04-11T09:24:04.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T04:58:16.000Z (over 3 years ago)
- Last Synced: 2025-03-25T04:41:21.161Z (over 1 year ago)
- Topics: linkedin, linkedin-api
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 9
- Watchers: 0
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# linkedin-post
It uploads the post on your LinkedIn profile via LinkedIn API.
### Steps to run script
1. Install the requirements using pip as `pip install -r requirements.txt`.
2. Create an app on LinkedIn's developers account [here](https://www.linkedin.com/developers/) and follow the guide [here](https://docs.microsoft.com/en-us/linkedin/shared/authentication/authorization-code-flow?context=linkedin/context) to get the access token. After getting access token, send a `GET` request defined [here](https://docs.microsoft.com/en-us/linkedin/consumer/integrations/self-serve/sign-in-with-linkedin?context=linkedin/consumer/context#api-request) to get the Person `URN` from the response.
3. Create a `.env` file and write the follwing content into it
```
ACCESS_TOKEN=""
URN=""
```
4. Run the script using `python post_on_linkedin.py` which will print the `SUCCESS` and `id` of the post shared as a JSON response. You can now check as well on your LinkedIn profile. :)
### License
This code is available with [MIT](https://github.com/gutsytechster/linkedin-post/blob/master/LICENSE) License