Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

pawl

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pawl

PAWL (an acronym for `Python API Wrapper - LinkedIn`) allows for simple access to LinkedIn's API.

  • 0.1.1
  • PyPI
  • Socket score

Maintainers
1

PAWL: Python API Wrapper for LinkedIn


PyPI - Version PyPI - Python Version PyPI - Monthly Downloads

PAWL (an acronym for Python API Wrapper - LinkedIn) allows for simple access to LinkedIn's API with only a single dependency.

Installation

PAWL is supported on Python 3.9+. The recommended way to install PAWL is with pip.

pip install pawl

Examples

Examples are provided in docs/examples.

Quickstart

# Demo in python/ipython shell
# Don't forget to install pawl first

>>> import pawl

>>> linkedin = pawl.Linkedin(
    client_id="CLIENT_ID_VALUE",
    client_secret="CLIENT_SECRET_VALUE",
    redirect_uri="http://localhost:8000",
)

>>> linkedin
<pawl.linkedin.Linkedin at 0x10ea46af0>
GET PROFILE:
# Demo in python/ipython shell

>>> linkedin
<pawl.linkedin.Linkedin at 0x10ea46af0>

>>> response = linkedin.current_user.basic_profile()

>>> response
{
    'localizedLastName': 'LAST_NAME',
    'profilePicture': {
        'displayImage': 'PHOTO_ID'
    },
    'firstName': {
        'localized': {
            'LANG_CODE_COUNTRY_CODE': 'FIRST_NAME'
        },
        'preferredLocale': {
            'country': 'COUNTRY_CODE_VALUE',
            'language': 'LANGUAGE_CODE'
        }
    },
    'lastName': {
        'localized': {
            'LANG_CODE_COUNTRY_CODE':
            'LAST_NAME'
        },
        'preferredLocale': {
            'country': 'COUNTRY_CODE',
            'language': 'LANGUAGE_CODE'
        }
    },
    'id': 'USER_ID',
    'localizedFirstName': 'LOCALIZED_FIRST_NAME'
}

Sources

The work that went into PAWL is not entirely my own. I learned a lot from open-sourced code written by many incredible developers.

License

PAWL's source is provided under the MIT License.

  • Copyright © 2021 Kyle J. Burda

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc