GithubHelp home page GithubHelp logo

learning-feeds's People

Contributors

dependabot[bot] avatar whargrove avatar

Watchers

 avatar

learning-feeds's Issues

Courses By Author

Create a feed of courses by author slug.

e.g. GET /courses?author=scott-simpson would return a feed for courses released by Scott.

Courses By Skill

Create a feed of courses by skill slug.

e.g. GET /courses?skill=generative-ai would return a feed for courses that are tagged with the skill for 'Generative AI'.

Add Feed Entry Categories

Each entry should include categories for associated:

  • authors
  • skills

Each category should contain:

  • term (slugified value of the category)
  • label (human readable)

The terms can be used as filters against the feed.

/learningAssets fails to load with 400 Bad Request LinkedIn-Version Header Missing

Running the loader fails with an error response from api.linkedin.com.

Example URL where the request fails:

https://api.linkedin.com/rest/learningAssets?assetType=COURSE&count=100&expandDepth=1&fields=urn%2Cdetails%3A%28classifications%2Cimages%2Curls%3A%28webLaunch%29%2CpublishedAt%2Cdescription%2Ccontributors%2CavailableLocales%29%2Ctitle%3A%28value%29&includeRetired=false&q=localeAndType&sourceLocale.country=US&sourceLocale.language=en&start=200

Odd observation is that the first 1-2 requests (start=0, start=100) are successful, but the 3rd request fails.

Headers:

{'Content-Type': 'application/json', 'X-RestLi-Protocol-Version': '1.0.0', 'Date': 'Mon, 11 Mar 2024 18:09:52 GMT', 'X-Li-Fabric': 'prod-ltx1', 'Transfer-Encoding': 'chunked', 'Connection': 'keep-alive', 'X-Li-Source-Fabric': 'prod-lor1', 'X-Li-Pop': 'prod-lor1-x', 'X-LI-Proto': 'http/1.1', 'X-LI-UUID': 'AAYTZnKpU1G2jqVcD/DQQw==', 'Set-Cookie': 'bcookie="SNIP"; domain=.linkedin.com; Path=/; Secure; Expires=Tue, 11-Mar-2025 18:09:52 GMT; SameSite=None, lidc="b=TB79:s=T:r=T:a=T:p=T:g=3422:u=1:x=1:i=1710180591:t=1710185591:v=2:sig=AQG_5P9tLxXfrH-zNk--XPYkV-r2g9zG"', 'X-LI-Route-Key': '"b=TB79:s=T:r=T:a=T:p=T:g=3422:u=1:x=1:i=1710180591:t=1710185591:v=2:sig=AQG_5P9tLxXfrH-zNk--XPYkV-r2g9zG"'}

Body:

{'status': 400, 'code': 'VERSION_MISSING', 'message': 'A version must be present. Please specify a version by adding the LinkedIn-Version header.'}

Steps to Reproduce:

CLIENT_ID=... CLIENT_SECRET=... python learning-feeds/loader/loader.py

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.