Skip to content
Ray J edited this page Mar 29, 2014 · 51 revisions

How it works

links creates a community by helping it's users share content with each other.

The primary function is to find and store as man URLs as possible. The URLs can be collected from 3 different sources, IRC (logs), twitter (@mentions) and pocket (http://www.getpocket.com). For each URL found the system will attempt to find the <title> and store it in the database. It can be configured to download images and create a thumbnail for viewing in the thumbs gallery.

This diagram shows some of the technologies used within links. It runs on a Apache/PHP/MySQL backend, the collectors are perl scripts, and the web interface is built on the twitter bootstrap UI (http://www.getboostrap.com) so it is very configurable.

This diagram shows the logical work flow of the collector scripts.

How it looks

links

The main links page has all of the URLs that have been collected.

  • If it was a web page the <title> will be displayed.
  • If an image is downloaded you will see a link to the (cache)ed copy.
  • The numbered badges in the menu tell you how many new posts since the last visit.
  • Use the settings to hide the cached thumbs and/or vids from this page.

thumbs

The thumbs page has all of the images that have been downloaded.

thumbs lightbox

vids

The vids page has all of the videos embedded on one page.

  • Supports Youtube and Vimeo

vids lightbox:

link-up

The link-up page is where you can authorize your pocket account or follow the twitter account.

settings

What you need

System

  • Apache

  • MySQL

  • PHP

  • perl (Collectors)

  • perl modules

  • DBI & POSIX

  • LWP::UserAgent (LibWWW-perl)

  • URI

  • MIME::Types

  • Encode

  • File

  • Optional:

  • perl Image Magick (Image Download)

    • perl File::LibMagic (better mime type detection)
  • perl Net::Telnet (Bot Chat)

  • perl Net::Twitter (Twitter Post)

  • perl NET::Amazon::S3 (Amazon S3 Storage)

Collectors

IRC

  • Eggdrop (tcl-devel)

Twitter

  • perl Net::Twitter
  • perl Crypt::SSLeay
  • perl WWW::Shorten::Bitly

Pocket