GithubHelp home page GithubHelp logo

trtmn / metalink Goto Github PK

View Code? Open in Web Editor NEW

This project forked from geniuslounge/metalink

0.0 1.0 0.0 4.58 MB

Pretty Social Posts and RSS feeds for your YouTube Videos

License: MIT License

Python 61.59% HTML 38.41%

metalink's Introduction

Meta Link

Generate beautiful social links for you YouTube videos, as well as YouTube RSS feeds.

Sometimes social media sites don't treat your YouTube videos with enough respect

MetaLink provides the whole thumbnail to the social service, rather than a cropped square (Facebook) or text link (Twitter).

Currently designed to be deployed via heroku, it should be fairly easy to update to your deployment system of choice.

Pretty links for your YouTube Videos

Before and After (Facebook)

Before and After (Twitter)

YouTube RSS Feeds!

(And RFC822 compatible)

Try it!

  • Post this to Facebook: http://geniuslounge.com/WaFMDe5cE8w or try your own video: http://geniuslounge.com/{YouTube Video ID}

  • For our RSS feed: http://geniuslounge.com/feed or another YouTube channel's RSS feed: http://geniuslounge.com/channel/{YouTube Channel ID}/feed

Other nifty things to try

  • / - Redirects users to your channel (and uses your vanity URL if you have one)
  • /latest - Allows you to have a static link that always points to your latest video. Our Latest video
  • /latest/image - Provides the thumbnail to the latest video.
  • /<video_id>/image - Provides the image for the video_id
  • /contribute - Provides a pretty link to let your YouTube Community help with translations & transcriptions. Help us caption
  • /feed - (mentioned above) Provides RSS feed of your YouTube Channel
  • /sitemap.xml - Generates a sitemap of the last 50 videos from your feed
  • /subscribe - takes users to your subscribe link, prompting them to subscribe if they haven't already

Channel specific links

Test these for your own channel

  • http://geniuslounge.com/channel/{YouTube Channel ID}
  • http://geniuslounge.com/channel/{YouTube Channel ID}/latest
  • http://geniuslounge.com/channel/{YouTube Channel ID}/latest/image
  • http://geniuslounge.com/channel/{YouTube Channel ID}/feed
  • http://geniuslounge.com/channel/{YouTube Channel ID}/mobile_banner

All you need is Python 3, a heroku account (Free level is fine), and to set the following environment variables:

  • channel_domain - in the form of geniuslounge.com
  • DISABLE_COLLECTSTATIC = 1 - For heroku config, this was required, as it doesn't even have a DB, or defined static files!
  • django_secret_key - because making your secret key public in GitHub is bad luck.
  • yt_api_key - Your YouTube API key
  • channel_id - Your YouTube channel id, for /latest/ lookups, etc...

metalink's People

Contributors

trtmn avatar

Watchers

James Cloos avatar

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.