Skip to main content

django-overcomingbias-api: an API to Robin Hanson's content

Project description

django-overcomingbias-api is a standalone Django app which lets you create and manage an API to (some of) Robin Hanson’s content.

It scrapes the overcomingbias blog (and other sites) and presents the data in a structured form via REST and GraphQL APIs.

Basic Usage

A graphical user interface is provided through the Django admin site.

To initialise a database of all overcomingbias posts, use the “pull” button:

Create and update overcomingbias posts from the admin site

Add new posts with “pull”, and update modified posts with “sync”. (You can also add content from YouTube and Spotify.)

Categorise content according to the “ideas” and “topics” it contains, or by generic “tags”. Use the admin site and custom Admin Actions to manage content.

Coming soon Link the app in your URL config to access the REST or GraphQL APIs:

# urls.py

urlpatterns = [
    ...
    path("", include("obapi.urls")),
    ...
]

Alternatively, provide your own views for each post:

# urls.py
from django.urls import path, register_converter
from obapi.converters import OBPostNameConverter
from myapp.views import ob_detail_view

register_converter(OBPostNameConverter, "ob_name")
urlpatterns = [
    ...
    path(
        "content/overcomingbias/<ob_name:item_id>",
        ob_detail_view, # custom view
        name="obcontentitem_detail",
    ),
    ...
]

Features

Currently, content can be scraped from the following sources:

  • The overcomingbias blog (added automatically)

  • YouTube videos (add videos manually using their URLs)

  • Spotify podcast episodes (add episodes manually using their URLs)

Documentation

Read the full documentation here, including the Installation and Getting Started Guide.

Bugs/Requests

Please use the GitHub issue tracker to submit bugs or request features.

Changelog

See the Changelog for a list of fixes and enhancements at each version.

License

Copyright (c) 2022 Christopher McDonald

Distributed under the terms of the MIT license.

All overcomingbias posts are copyright the original authors.

Project details


Download files

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

Source Distribution

django-overcomingbias-api-0.1.0.tar.gz (280.3 kB view details)

Uploaded Source

Built Distribution

django_overcomingbias_api-0.1.0-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

Details for the file django-overcomingbias-api-0.1.0.tar.gz.

File metadata

File hashes

Hashes for django-overcomingbias-api-0.1.0.tar.gz
Algorithm Hash digest
SHA256 be16a3f2da463da7923ee112141458c94f8f5a70e7982ad9c6a2a37e3e5518bf
MD5 0677a2dd77441a666e6d376d96e74f3f
BLAKE2b-256 8ed96a18b1885ae0e8795fbf4cdc3dfe3f59802ba01c809c8a5d937f2ca92450

See more details on using hashes here.

File details

Details for the file django_overcomingbias_api-0.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_overcomingbias_api-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 30e1c20c201c31bbb1cce05ab81dec0686ccc9a259908d09d2aa84a3b130e93c
MD5 55ec427b934fe42ac0950114b950c352
BLAKE2b-256 8abb8e77375f9045b8a472c0618645c8bbc3a1590fbf1fe519bd52c411ecf315

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page