Skip to main content

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

Project description

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

$ workon keeper

(keeper)$ pip install dark-keeper

(keeper)$ cat

from collections import OrderedDict

from pymongo import MongoClient

from dark_keeper import DarkKeeper
from dark_keeper.parse import parse_urls, parse_text, parse_attr

class PodcastKeeper(DarkKeeper):
    base_url = ''

    mongo_client = MongoClient('localhost', 27017)
    mongo_db_name = 'podcasts'
    mongo_coll_name = ''

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

    def parse_content(self, content):
        row = OrderedDict([])

            'title': parse_text(content, '.hentry .entry-title')
            'desc': parse_text(content, '.hentry .entry-content')
            'mp3': parse_attr(content, '.hentry audio', 'src')

        if row['title'] and row['mp3']:

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.6
Filename, size File type Python version Upload date Hashes
Filename, size dark-keeper-0.2.6.tar.gz (4.5 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