Flexget

From Bytesized Wiki

Revision as of 15:53, 8 June 2011 by Admin (Talk | contribs)
Jump to: navigation, search

FlexGet is a very powerful tool to aggregate and sort RSS feeds automatically and it works well with Deluge.
FlexGet is a multipurpose automation tool for content like torrents, nzbs, podcasts, comics, etc.
FlexGet is able to handle different kinds of sources like RSS-feeds, html pages and csv files.
There are even some plugins for sites that do not provide any kind of useful feeds.
There are numerous plugins that allow utilizing FlexGet in interesting ways and more are being added continuously.
Since the FlexRSS plugin isn’t working in Deluge 1.2.*, I thought I write this workaround for adding torrents through RSS-Feeds.
Feel free to add something or correct me if I made a mistake.

Contents

Installing FlexGet

If you are on a new server FlexGet is already installed you can go straight to Configuring FlexGet'


New users shouldn't be discouraged by the code below, its very straight forward.
To setup: <10 min.
To configure: <60 min (depending on your complexity of the code).

Installation

Open the terminal on your box, either through VNC or through SSH.

  • Create virtualenv by typing in terminal:
virtualenv ~/flexget/
  • Activate virtualenv by typing in terminal:
 source ~/flexget/bin/activate
  • Install latest version of flexget by typing:
easy_install http://download.flexget.com/unstable/FlexGet-1.0r1712-py2.6.egg

This will install FlexGet and all the required dependencies.
The Flexget version above was released on Dec. 10, 2010.
Newer versions are being released almost daily, go to http://flexget.com/ to see the latest version available. Then simply change the code above.
You can easily upgrade your current version to the latest anytime by re-running the code above with the latest version number.

Configuring FlexGet

  • While in your home directory, type in terminal:
 nano ./flexget/config.yml
  • To save changes to the config file, press Ctrl-O then 'Enter' on your keyboard, then Ctrl-X to close

Examples of config.yml files

Reading examples below is the easiest way to configure flexget to suit your needs:

  • Examples from flexget website:

http://flexget.com/wiki/Configuration
http://flexget.com/wiki/Cookbook

  • Examples from our blog:

http://blog.bytesized-hosting.com/2010/03/16/the-beauty-of-flexget/

  • A user-submitted example of basic configuration:

http://pastebin.com/GdiqFQ9B

  • A user-submitted example of advanced configuration:

http://pastebin.com/H6gyipex

Checking FlexGet

  • You can check whether your configuration would work by typing:
flexget --test

Running FlexGet

  • You can run Flexget manually by typing:
flexget

Scheduling FlexGet

  • You can automate FlexGet to run frequently such that it downloads new torrents automatically to your watch folder, without manually running flexget.
  • For this you must edit your crontab, type:
crontab -e 
  • This will ask you to choose your prefered editor, select "nano" if you are comfortable with this.
  • If you wish to let flexget run every 10 minutes, add this line:
*/10 * * * * ~/flexget/bin/flexget -—cron
  • To save changes to the crontab file, press Ctrl-O then 'Enter' on your keyboard, then Ctrl-X to close
  • There is no way to confirm that your crontab is working by typing a command in the terminal, so simply wait and see if torrents are being added to deluge automatically. If they are not, there's a mistake in the code mentioned above.

Help

  • This guide is based on http://flexget.com/wiki/InstallWizard/Linux/NoRoot/Virtualenv
  • If the installation fails check this page for the latest links.
  • If you get stuck using Flexget, simply create a ticket at http://flexget.com/newticket and the members of flexget will help you out. Response time is usually within 30mins.
  • If you're using Putty, CTRL+C and CTRL+V doesnt work. So copy any code and right-click with your mouse to paste it in Putty. (Useful for long RSS links)
Personal tools