Coder Social home page Coder Social logo

tdd's Introduction

TheDailyDecrypt Podcast Generator

a.k.a. TDDPG (cooler name pending)

Automatic podcast creator for The Daily Decrypt

Project Goal

Goal Summary

Automatically generate a podcast website containing MP3s of every Daily Decrypt show, persisting it to IPFS.

  • get list of vids
  • download vids
  • convert vids
  • generate website
  • add website IPFS
  • publish to IPNS

Goal Detail

This program/server/app TDDPG runs on a computer somewhere.

Function 1 - Bulk Podcastification, IPFSification

TDDPG runs on a computer somewhere. When started, and twice per day, TDDPG uses the YouTube API and IPFS API to find out if there are any TDD videos which have not yet been podcastified and IPFSified. Any videos which TDDPG hasn't already processed are converted into MP3s, rendered into a simple podcast website, and stored on IPFS.

Function 2 - Reactional Podcastification, IPFSification

When TheDailyDecrypt uploads a new video, TDDPG is notified of this video's details via the youtube API.

TDDPG then downloads the new video, converting it into an MP3. Then it generates a static HTML site with RSS feed and iTunes link. Then it adds the HTML site to IPFS, and updates an IPNS hash to point to the latest IPFS hash of the podcast site.

The Stack

  • Worker

    • Node.js
      • Request (makes calls to youtube api)
      • Metalsmith (generates static website)
      • ipfs-api (interfaces worker with IPFS)
      • Foreman (handles storing private yt api key, creates init.d scripts)
  • Storage/distribution

    • IPFS (Next-generation of the internet. "The Permanent Web" where links don't die and everything loads faster)
      • ipfs-kloud (uses Ansible to manage a cluster of IPFS gateway servers)

Installation

Note: You do not need to install this project to use it. Installing this project is for developers who want to hack on this project, see how it works, etc.

Prerequisites

First you will need a youtube developer API key. Go here https://console.developers.google.com/apis/credentials and create an app. Then create a Server type API key. Then enable the Youtube API for this app.

Create a file .env which will hold your API key.

You will also need git, node.js, and npm.

Installing

Clone the project to your computer

$ git clone

cd into the project directory

$ cd tdd

create a file, .env and paste in the Google/YouTube API key you created in the above Prerequisites section. Your .env file should look like this-

YOUTUBE_API_KEY=SDJFOKLPEIJ83a8dfjf83oad8f-EUfjfafjisSf

install the node modules needed for this project

npm install

start the program

npm run start

Now the app will download and podcastify and IPFSify any videos that haven't been already. Also, the app will react to new TDD video uploads, podcastifying and IPFSifying them as they are published to youtube.

TODO list

  • get list of vids

  • download vids

  • convert vids

  • generate website

  • add website IPFS

  • publish to IPNS

  • bulk podcastification, IPFSification

  • reactional podcastification, IPFSification

  • switch back to nikhilm's taglib once this is merged: nikhilm/node-taglib#63

  • use bootstrap stylesheet from node_modules rather than CDN

Contributing

hellz yes, open those issues, request those pulls!

tdd's People

Contributors

insanity54 avatar

Stargazers

 avatar

Watchers

James Cloos avatar

tdd's Issues

Nicer HTML CSS needed

Ideally layout/list.hbs would be nicer looking.

I'm not good at HTML/CSS design so I'm putting this under the "help wanted" label

Cool name needed

For now, it's "TheDailyDecryptPodcastGenerator" a.k.a. TDDPG, but that's totally boring and could use some pizazz! Brainstorm pl0x.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.