Giter VIP home page Giter VIP logo

shashankdeshpande / linkedin-profile-picture Goto Github PK

View Code? Open in Web Editor NEW
19.0 2.0 3.0 21 KB

This package is used to get a profile picture of the LinkedIn user using Google Custom Search API

License: MIT License

Python 100.00%
linkedin linkedin-profile linkedin-scraper linkedin-crawler python linkedin-profile-scraper linkedin-profile-url linkedin-profile-picture linked-profile-photo profile-picture

linkedin-profile-picture's Introduction

LinkedIn Profile Picture Search

  • I wanted to get profile picture of a LinkedIn user by using his/her linkedin id. I have earlier created this github repository which extract publically available profile data including profile picture and other details such as experience, education etc.
  • But due to restrictions by LinkedIn, it was not able to login on remote server in order to extract profile data. So, I decided to fetch profile pictures that are available through google image search. This method is not able to extract profile picture for all the users due to user's privacy settings and google's algorithm behind image search but, we can get some profile pictures without logging in linkedin.

To be able to use this library, you need to enable Google Custom Search API, generate API key credentials and set a project:

After setting up your Google developers account and project, you should have been provided with developers API key and project CX.

Install directly from the GitHub repository

pip install git+https://github.com/shashankdeshpande/linkedin-profile-picture.git
> from linkedin_profile_picture import ProfilePicture
> profile = ProfilePicture("your_dev_key","your_project_cx")
> res = profile.search("linkedin_id")
> res.link
"https://media-exp1.licdn.com/dms/image/C5103AQFg0lOJGLL5nQ/profile-displayphoto-shrink_200_200/0?e=1605139200&v=beta&t=ezcdygbf8i6Hz7DLdZ2xbKkzpbpPlFHryQ_uUJ2XW-8"

linkedin-profile-picture's People

Contributors

shashankdeshpande avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.