Skip to content

whargrove/learning-feeds

Repository files navigation

learning-feeds

RSS feed for content published on LinkedIn Learning.

Subscribing

This feed is available at http://learning-feeds.bxfncnf2c0d8b6av.eastus.azurecontainer.io:8080/courses.

By default, it returns entries of all english language courses.

You can filter the feed by author, e.g. ?author=scott-simpson, only courses by Scott Simpson will be returned in the feed.

Docker

This will build a docker image that is ready to run the server.

It includes running the loader as part of the build. The server/runtime image copies the sqlite database file from the loader image into runtime image so that the database is packaged with the server.

LINKEDIN_CLIENT_ID=... LINKEDIN_CLIENT_SECRET=... \
    docker build -f Dockerfile -t learning-feeds:latest \
    --secret id=LINKEDIN_CLIENT_ID \
    --secret id=LINKEDIN_CLIENT_SECRET .

To run the container:

docker run --cpus 1 --memory 512m -d -p 8080:8080 --name learning-feeds learning-feeds:latest

Loader

You can also run the loader directly. This is use for development of the loader.

Running the loader will pull all LinkedIn Learning Courses that are currently published (i.e. not retired) and related Author and Skills metadata for the Course. The content data is stored in a sqlite database file learning.db.

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

Server

Start the server:

DB_PATH=learning.db uvicorn learning-feeds.server.server:app --log-config=learning-feeds/server/log_conf.yml

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published