Coder Social home page Coder Social logo

codersalman / linkedin-profile-data-fetch-without-api- Goto Github PK

View Code? Open in Web Editor NEW
6.0 1.0 2.0 67 KB

LinkedIn Profile Data Fetch Without API

Home Page: https://linkedin-profile.codersalman.workers.dev/

License: MIT License

HTML 100.00%
linkedin linkedin-api linkedin-profile linkedin-scraper api api-rest linkedin-api-v2 profile profilecard

linkedin-profile-data-fetch-without-api-'s Introduction

linkedin-Profile-Data-Fetch-Without-API-

Demo Link https://linkedin-profile.codersalman.workers.dev/

Linkedin Profile Fetch Plugin for Web application for fetching LinkedIn user profile Without API using Javascript

Return small Cloudflaer Page using Cloudflaer Workers

addEventListener("fetch", (event) => {
  event.respondWith(
    handleRequest(event.request).catch(
      (err) => new Response(err.stack, { status: 500 })
    )
  );
});


 function handleRequest(request) {
  const { pathname } = new URL(request.url);

  if (pathname.startsWith("/api")) {
    return new Response(JSON.stringify({ pathname }), {
      headers: { "Content-Type": "application/json" },
    });
  }

  if (pathname.startsWith("/status")) {
    const httpStatusCode = Number(pathname.split("/")[2]);

    return Number.isInteger(httpStatusCode)
      ? fetch("https://http.cat/" + httpStatusCode)
      : new Response("That's not a valid HTTP status code.");
  }

  return fetch("https://linkedin-profile-data-fetch-without-api.pages.dev");
}

linkedin-profile-data-fetch-without-api-'s People

Contributors

abonzer avatar codersalman avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

abonzer vnitikesh

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.