Skip to main content

linkedin-cli - Linkedin Command Line Interface

Project description

linkedin-cli

Linkedin command line interface (cli) is a python 3 console application to handle authentication and communication with LinkedIn API v2.

Linkedin-cli requires a linkedin application client id and client secret to authenticate a user on the linkedin api v2. Create a linkedin application on linkedin developer site if you don't have already.

Follow tigillo on linkedin for the latest updates.

Supporters

Tigillo - Software Development Company

Requirements

python 3

Installation

python3 -m pip install linkedin-cli

Running

python3 -m linkedin

Usage

usage: linkedin <command> [<args?]

These are common linkedin commands used in various situations:

    config       Get and set linkedin-cli options
    login        Login with a user for api access
    me           Display logged in user details
    post         Share a post

Other commands

    help         Print help (this message)
    version      Print the version information

Configure Linkedin Application

Run below command and provide your client id and secret of your linkedin application. Configuration will be saved to ~/.linkedin/config.json file.

linkedin configure set application

Linkedin Application Configuration

Go to auth page of your linkedin application and add http://localhost:4625 address as the Authorized redirect URLs for your app on the OAuth 2.0 settings section.

Linkedin Application Configuration

Login

Run below command and authenticate your linkedin application for your user on the opened web dialog. Once approved your api token will be stored to ~/.linkedin/config.json file.

linkedin login

Share a Post

Put content between double quotes, new lines supported. Only text content supported currently.

linkedin post "Hello connections!

Sent from my terminal via linkedin-cli"

Post Visibility

Default visibility option for post command is connections. Visibility option can be set as connections or public.

linkedin post -v public "Hello world!

Sent from my terminal via linkedin-cli"

Build

python3 setup.py build

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

linkedin-cli-0.1.4.tar.gz (7.1 kB view details)

Uploaded Source

File details

Details for the file linkedin-cli-0.1.4.tar.gz.

File metadata

  • Download URL: linkedin-cli-0.1.4.tar.gz
  • Upload date:
  • Size: 7.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.1

File hashes

Hashes for linkedin-cli-0.1.4.tar.gz
Algorithm Hash digest
SHA256 47796fbd4f2fcd5ca27d9833d48087a83fd1312d972bfe4776570bda384447be
MD5 3f3f29aad08fc1b82469bc8bd1461c44
BLAKE2b-256 ae4a5fa7f9015d3005fd0126030c54d21a41867597a9690f7feef76f181d8aab

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page