App-Automaton
view release on metacpan or search on metacpan
lib/App/Automaton.pm view on Meta::CPAN
Automaton is designed to run periodically from Cron or something similar. Although, there is no reason you couldn't just run it manually.
It will gather input from it's input plugins, pass it through any specified filter plugins, and pass it on to it's action plugins.
The action plugins will parse each line of the input and execute any appropriate actions. The input will then be passed on to the next action plugin.
The following plugins are available now with the initial release:
* Input
* File: Reads all lines from a file and adds them to it's queue to be processed
* IMAP: Reads all messages from an IMAP email account and adds the content of each message to the queue
* Filter
* Unshorten: Looks for URLs from several known URL shortener services and expands them to full URLs
* Action
* YouTube: Downloads the video from a YouTube.com url
* TedTalks: Downloads the video from a TedTalks.com url
* NZB: Downloads the NZB file specified in the url
As you can see, these are all geared towards downloading videos. It's the first real world use case that I felt I could really do well.
The plugins can be appear multiple times in a config file, or left out completely. This allows you to download YouTube videos to multiple locations, for instance.
In the future, I picture giving it input that could tell it to do more interesting things. However, as long as commands are coming in over email, I'll leave the security implications minimal.
Obviously, you don't have to use that plugin. If you do, I certainly suggest not using your primary email since the password must be in the config file.
lib/App/Automaton/Plugin/Filter/Unshorten.pm view on Meta::CPAN
App::Automaton::Plugin::Filter::Unshorten - Expansion of shortneded URLs
=head1 VERSION
version 0.150912
=head1 SYNOPSIS
This module is intended to be used from within the App::Automaton application.
It expands shortened URLs to their full size so that other modules may identify them.
It currently supports the following shortening services:
* Twitter t.co
* Google goo.gl
* Bitly bit.ly
* BitDo bit.do
* Owly ow.ly
* Trim tr.im
* YouTube youtu.be
* Ted.com t.ted.com
( run in 0.848 second using v1.01-cache-2.11-cpan-5623c5533a1 )