Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Dark Keeper is open source simple web-parser for podcast-sites

Project description

Build Status Coverage Status Code Climate license

Dark Keeper

Dark Keeper is open source simple web-parser for podcast-sites.

Goal idea

I like listen IT-podcasts and learn something new. For really good podcasts I want download all episodes. Goal idea is create simple tool for this.


  • [x] simple web-spider walking on site
  • [x] cache for all downloaded pages
  • [x] parse any information from pages
  • [x] export parsed data to MongoDB

Quick start

$ mkvirtualenv keeper

(keeper)$ pip install dark-keeper

(keeper)$ cat

from collections import OrderedDict

from dark_keeper import DarkKeeper

class PodcastKeeper(DarkKeeper):
    base_url = ''
    mongo_uri = 'mongodb://localhost/podcasts/'

    def parse_urls(self, content):
        urls = content.parse_urls('#blog-archives h1 a', self.base_url)

        return urls

    def parse_data(self, content):
        data = OrderedDict()
        data['title'] = content.parse_text('.hentry .entry-title')
        data['desc'] = content.parse_text('.hentry .entry-content')
        data['mp3'] = content.parse_attr('.hentry audio', 'src')

        if data['title'] and data['mp3']:
            return data

if __name__ == '__main__':
    pk = PodcastKeeper()

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for dark-keeper, version 0.2.7
Filename, size File type Python version Upload date Hashes
Filename, size dark-keeper-0.2.7.tar.gz (4.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page