Giter VIP home page Giter VIP logo

manisha765 / linkedin-profile-viewer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from lokeshpatil-loki/linkedin-profile-viewer

0.0 0.0 0.0 610 KB

Have you ever wanted to access LinkedIn profile data without notifying the user? Look no further! This API allows you to scrape LinkedIn profile data in JSON format, all while ensuring the user remains unaware.

License: MIT License

JavaScript 96.04% CSS 3.45% HTML 0.50%

linkedin-profile-viewer's Introduction

Linkedin-Profile-Viewer - Scrapper

๐Ÿ” Introducing My LinkedIn Profile Data Scraper API! ๐Ÿš€

Have you ever wanted to access LinkedIn profile data without notifying the user? Look no further! I've developed an API that allows you to scrape LinkedIn profile data in JSON format, all while ensuring the user remains unaware.

๐Ÿ”— How It Works: By utilizing the userHandle or URL, you can effortlessly retrieve LinkedIn profile data in JSON format. The best part? The user won't receive any notifications.

๐Ÿช LinkedIn Cookies Required: To set up this API, you'll need your LinkedIn cookies: li_at and JSESSIONID. These cookies are essential for seamless integration and data retrieval.

๐Ÿš€ Key Features:

  • Stealthy Data Retrieval: Access LinkedIn profile data without raising any suspicion.
  • Cookie-based Setup: Use your li_at and JSESSIONID cookies to seamlessly set up the API.
  • Effortless Integration: Incorporate the API into your projects for smooth data extraction.

Environment Variables

NOTE: For development create .env file

COOKIE = 'li_at=<LI_AT>; JSESSIONID="<JSESSIONID>";'
CSRF = '<JSESSIONID>'
MONGO_URI = ""
PORT = 4000
  • <LI_AT>: Replace with li_at cookie of LinkedIn
  • : Replace with JSESSIONID cookie of LinkedIn
  • MONGO_URI: Mongodb Connection String

cookie png

End Points

API Endpoint: POST /api/profile

This endpoint retrieves a user's profile information based on the provided user handle or profile URL.

Request Body

The request body should be a JSON object with at least one of the following properties:

  • userHandle (string, optional): The user handle associated with the LinkedIn profile. If provided, the user's profile information will be fetched based on this handle.
  • url (string, optional): The URL of the user's LinkedIn profile. If provided, the userHandle will be extracted from the URL and used to fetch the profile information.

Example Request Body

{
    "userHandle": "lokesh-patil-77221a24a"
}
{
    "url": "https://www.linkedin.com/in/lokesh-patil-77221a24a/"
}

Note: You can provide either the userHandle or the url in the request body. If both are provided, the userHandle will take precedence.

Response

The response will contain the profile information of the requested user

{
    "profile": {
        "_id": "string",
        "firstName": "string",
        "lastName": "string",
        "headline": "string",
        "publicIdentifier": "string",
        "url": "string",
        "authorProfileId": "string",
        "about": "string or null",
        "skills": {
            "totalCount": "number",
            "skills": [
                {
                    "title": "string",
                    "appliedIn": [
                        {
                            "name": "string",
                            "_id": "string"
                        }
                    ],
                    "_id": "string"
                }
            ]
        },
        "experiences": [
            {
                "title": "string",
                "subtitle": "string",
                "duration": "string",
                "description": "string or null",
                "skills": ["string"],
                "image": ["string"],
                "certificates": [
                    {
                        "name": "string",
                        "url": "string",
                        "_id": "string"
                    }
                ],
                "_id": "string"
            }
        ],
        "education": [
            {
                "title": "string",
                "image": "string",
                "degree": "string",
                "duration": "string",
                "grade": "string",
                "description": "string",
                "_id": "string"
            }
        ],
        "certifications": [
            {
                "title": "string",
                "credentialID": "string or null",
                "issueDate": "string or null",
                "certificate": "string",
                "skills": ["string"],
                "_id": "string"
            }
        ],
        "posts": [
            {
                "dashEntityUrn": "string",
                "description": "string",
                "pastActivityOn": "string",
                "images": ["string"],
                "videos": ["string"],
                "likes": "number",
                "_id": "string"
            }
        ],
        "createdAt": "string (ISO 8601 date)",
        "updatedAt": "string (ISO 8601 date)",
        "__v": "number"
    }
}

Response Attributes:

  • profile (object): User profile information
    • _id (string): Document ID
    • firstName (string): User's first name
    • lastName (string): User's last name
    • headline (string): User's professional headline
    • publicIdentifier (string): User's public identifier
    • url (string): User's LinkedIn profile URL
    • authorProfileId (string): Author profile ID
    • about (string or null): User's about section
    • skills (object):
      • totalCount (number): Total count of skills
      • skills (array):
        • title (string): Skill title
        • appliedIn (array of objects):
          • name (string): Name where skill was applied
    • experiences (array of objects):
      • title (string): Experience title
      • subtitle (string): Experience subtitle
      • duration (string): Experience duration
      • description (string or null): Experience description
      • skills (array of strings): Relevant skills for the experience
      • image (array of strings): Experience images
      • certificates (array of objects):
        • name (string): Certificate name
        • url (string): Certificate URL
    • education (array of objects):
      • title (string): Education institution title
      • image (string): Education institution image
      • degree (string): Degree obtained
      • duration (string): Education duration
      • grade (string): Grade obtained
      • description (string): Education description
    • certifications (array of objects):
      • title (string): Certification title
      • credentialID (string or null): Credential ID
      • issueDate (string or null): Issue date of the certification
      • certificate (string): Certification URL
      • skills (array of strings): Skills related to the certification
    • posts (array of objects):
      • dashEntityUrn (string): Entity urn of the post
      • description (string): Post description
      • pastActivityOn (string): Time since the post was active
      • images (array of strings): Post images
      • videos (array of strings): Post videos
      • likes (number): Number of likes on the post
    • createdAt (string): Timestamp of profile creation (ISO 8601 date)
    • updatedAt (string): Timestamp of last profile update (ISO 8601 date)
    • __v (number): Version of the profile data

linkedin-profile-viewer's People

Contributors

scrap-lon avatar lokeshpatil-loki avatar blizet avatar ashray-1501 avatar manisha765 avatar tejabhai2002 avatar chaitanya4455 avatar thehptalks 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.