Skip to content

A content aggregator for some of my favorite blogs and podcasts.

License

Notifications You must be signed in to change notification settings

rkthoya/Podregator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Podregator

A content aggregator for some of my favorite podcasts.

alt text

Features

Running the project locally.

To run the code locally ensure you have git and Python 3.8 or above installed. It'll be also helpful to have Pipenv installed. Clone the repo into your computer through:

git clone https://github.com/rkthoya/Podregator.git

While inside the repo install the project dependencies using

pipenv install

Activate your virtual environment:

pipenv shell

Run the migrations to create a simple SQLite database:

python manage.py migrate

To see a demo of parsed episodes on the homepage you might need to alter the time interval between a task's execution. You can do this in the aggregator/management/commands/runjobs.py. In the handle() method of the Command class, change the "hours" argument in any of the scheduler.add_job() functions to minutes. For example:

scheduler.add_job(
            fetch_stackoverflow_episodes,
            trigger="interval",
            # hours=120,
            minutes=2,
            id="The Stack Overflow Podcast",
            max_instances=1,
            replace_existing=True,
        )

You'll need two separate terminals - both in the same virtual environment - to run the development server and scheduled tasks:

python manage.py runserver

python manage.py runjobs

About

A content aggregator for some of my favorite blogs and podcasts.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published