Flexget

From Bytesized Wiki

(Difference between revisions)
Jump to: navigation, search
(1) added sections: examples, checking, running, scheduling, help 2) changed: error in the code for crontab 3) updated: latest version of flexget 4) changed: wording for clarity)
Line 1: Line 1:
-
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.
+
FlexGet is a very powerful tool to aggregate and sort RSS feeds automatically and it works well with Deluge.
-
There are numerous plugins that allow utilizing FlexGet in interesting ways and more are being added continuously.
+
<br>FlexGet is a multipurpose automation tool for content like torrents, nzbs, podcasts, comics, etc.  
-
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.
+
<br>FlexGet is able to handle different kinds of sources like RSS-feeds, html pages and csv files.  
 +
<br>There are even some plugins for sites that do not provide any kind of useful feeds.
 +
<br>There are numerous plugins that allow utilizing FlexGet in interesting ways and more are being added continuously.
 +
<br>Since the FlexRSS plugin isn’t working in Deluge 1.2.*, I thought I write this workaround for adding torrents through RSS-Feeds.  
 +
<br>Feel free to add something or correct me if I made a mistake.
=Installing FlexGet=
=Installing FlexGet=
 +
New users shouldn't be discouraged by the code below, its very straight forward.
 +
<br>To setup: >10 min.
 +
<br>To configure: >60 min (depending on your complexity of the code).
-
 
+
====Installation====
-
FlexGet is a very powerful tool to aggregate and sort rss feeds automatically and it works well with deluge.
+
-
For an introduction see http://blog.bytesized-hosting.com/2010/03/16/the-beauty-of-flexget/
+
-
 
+
-
====Installation:====
+
Open the terminal on your box, either through [http://wiki.bytesized-hosting.com/wiki/index.php/VNC VNC] or through [http://wiki.bytesized-hosting.com/wiki/index.php/Command_line#SSH_access SSH].
Open the terminal on your box, either through [http://wiki.bytesized-hosting.com/wiki/index.php/VNC VNC] or through [http://wiki.bytesized-hosting.com/wiki/index.php/Command_line#SSH_access SSH].
*Create virtualenv by typing in terminal:
*Create virtualenv by typing in terminal:
Line 15: Line 18:
*Activate virtualenv by typing in terminal:  
*Activate virtualenv by typing in terminal:  
   source ~/flexget/bin/activate
   source ~/flexget/bin/activate
-
*Install latest version for python 2.6 by typing in terminal:
+
*Install latest version of flexget by typing:
-
  easy_install http://download.flexget.com/unstable/FlexGet-1.0r1377-py2.6.egg
+
  easy_install http://download.flexget.com/unstable/FlexGet-1.0r1712-py2.6.egg
This will install FlexGet and all the required dependencies.
This will install FlexGet and all the required dependencies.
 +
<br>The Flexget version above was released on Dec. 10, 2010.
 +
<br>Newer versions are being released almost daily, go to http://flexget.com/ to see the latest version available. Then simply change the code above.
 +
<br>You can easily upgrade your current version to the latest anytime by re-running the code above with the latest version number.
-
====Configure FlexGet====
+
====Configuring FlexGet====
*While in your home directory, type in terminal:
*While in your home directory, type in terminal:
   nano ./flexget/config.yml
   nano ./flexget/config.yml
-
*For configuration options see the blog mentioned above or http://flexget.com/wiki/Configuration
+
*To save changes to the config file, press Ctrl-O then 'Enter' on your keyboard, then Ctrl-X to close
-
*Write content of config file with Ctrl-O and close nano with Ctrl-X
+
-
=====Basic config.yml=====
+
====Examples of config.yml files====
-
+
Reading examples below is the easiest way to configure flexget to suit your needs:
-
http://pastebin.com/GdiqFQ9B
+
*Examples from flexget website:
 +
http://flexget.com/wiki/Configuration
 +
<br>http://flexget.com/wiki/Cookbook
 +
*Examples from our blog:<br>
 +
http://blog.bytesized-hosting.com/2010/03/16/the-beauty-of-flexget/
 +
*A user-submitted example of basic configuration:<br>
 +
http://pastebin.com/GdiqFQ9B
 +
*A user-submitted example of advanced configuration:<br>
 +
http://pastebin.com/H6gyipex
-
=====Advanced config.yml=====
+
====Checking FlexGet====
-
http://pastebin.com/H6gyipex
+
*You can check whether your configuration would work by typing:
 +
flexget --test
 +
====Running FlexGet====
-
*You can then let cron run FlexGet every 30 minutes and it downloads new torrents automatically to your watch folder.
+
*You can run Flexget manually by typing:
-
*To edit your crontab, type:
+
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  
  crontab -e  
-
*This will ask you to choose your prefered editor, select 3 for nano if you are comfortable with this.
+
*This will ask you to choose your prefered editor, select "nano" if you are comfortable with this.
-
*Add the line:
+
*If you wish to let flexget run every 10 minutes, add this line:
-
  */10 * * * * ~/flexget/flexget —cron
+
  */10 * * * * ~/flexget/bin/flexget -—cron
-
This will run the program every 10 minutes.
+
*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
*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 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.
-
Please Note: You can follow this guy and simply replace the easy_install with the latest version from http://flexget.com/ the only difference is that newer version do not need you to —initdb
+
*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)

Revision as of 07:59, 11 December 2010

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

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