pippip3 installl flexget 时遇到的问题,求教各位专家

【教程】Flexget的安装于配置_pt吧_百度贴吧
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&签到排名:今日本吧第个签到,本吧因你更精彩,明天继续来努力!
本吧签到人数:0可签7级以上的吧50个
本月漏签0次!成为超级会员,赠送8张补签卡连续签到:天&&累计签到:天超级会员单次开通12个月以上,赠送连续签到卡3张
关注:34,714贴子:
【教程】Flexget的安装于配置
写一个Flexget教程吧,不记得吧内是不是有过了,反正自己配置的时候都是在外面找到的教程。Flexget能帮助Transmission实现RSS功能RSS不懂的可以看本人的《【我要做一个远程DPS】——UT远程控制+RSS介绍》的第三部分,地址: 一、安装部分:简略说一下吧,需要用到Flexget主要是盒子和NAS,盒子直接按网上的各种教程来都没什么问题,NAS有点蛋疼在,它是处于【墙】内….所以请自备【】。1.安装Python一般盒子的linux都内置了Python,所以略过。NAS(这里指群晖,其它的没接触过)官方的商店里也有Python了,直接点击安装就行2.安装Flexget(直接复制粘贴了 -.- )Flexget可以通过多种方式安装,一般通过“”或者“pipinstall flexget”安装Mac下自带如果你使用的Linux系统并没有自带或pipUbuntu下可以通过“sudo apt-get install python-pip”如果是其他系统,可以curl | pythoncurl | python也可以通过egg等方式安装【PS:如果安装不上,请不要找楼主,楼主是Linux白痴,只会按教程来←.←】3.安装transmissionrpc直接” transmissionrpc” 二、配置部分1.创建目录在/root/下创建”.flexget”目录,即/root/.flexget可以用命令,也可以用WinSCP,注意给777权限就行“mkdir -p /root/.flexget/”【这个不是很确定,因为我好像是WinSCP建的】2. 配置config.yml用新建一个,然后另存为UTF-8格式的config.yml=========================这个是本帖在重点了=========================首先是两个注意事项:1.
编码必须为UTF-82.
必须严格注遵循YAML格式,即缩进两个半角空格 先来一个模板,模板的是为了避免每一个任务都要配置一遍,一般能用到的就是email和transmission了templates:
active: True
from: *@qq.com
to:*@*.com
smtp_host:
smtp_port: 465
smtp_username: *@qq.com
smtp_password: ***
smtp_ssl: yes
template: accepted
transmission:
host: localhost
port: 9091(端口)
username: **
password: **这个是EMAIL的模板,用于Flexget完成操作后通知自己,最后那个”template”,可以是default(默认会通知添加种子和错误)accepted(只通知添加种子)failed(只通知错误)。Transmission配置没什么说的,自己填端口和账号密码就行了,就是登陆WEBUI的那个。 然后是任务了tasks:
rss: **********
accept_all: yes
rss: **********
accept_all: yes
transmission:
host: localhost
port: 9091(端口)
username: **
password: **
path: /volume1/PT/test2
- em很简单如果不配置tr的模板的话可以单独为每个人物配置目录关于过滤规则accept_all: yes是代表不过滤,直接自动下载,一般用于下载筐或者配置好的RSS链接而过滤的方式有很多,这里就说两种我自己用到的(是等效的,随便那个都可以)第一种,IF语句()
- &*1080P* in title&:accept这里表示标题中包含”1080P”字样的资源,多个关键字可以用 and 或者 or连接如 - &*特效* and ‘DIY’ in title&: accept 第二种,正则表达式()
- PublicHD这里的意思是只下载REMUX,但是禁止PublicHD的(躺枪么←. ←)这种方法实际上都有很复杂的语法,但是基本这样就够用了。 再次提醒一下一定要注意格式(每级递增两个半角空格) 配置完成后直接丢在/root/.flexget目录下就行 然后测试flexget --test 测试没有问题后(神马?有问题?找啊!)在/etc目录下的crontab文件的结尾添加一行*/5 *
/usr/local/bin/flexget execute注意:这里的空着的是使用【Tab】建,不确定使用空格是否可行 END
貌似格式都被度娘吃了,一会传一个文件的模板吧
习惯的看了一下时间,还以为是坟贴呢。之前貌似有类似的精品帖吧。应该不一样,反正看不懂
顶一个作纪录
加精的节奏啊
控制质量用quality要好得多,另外content_size控制大小也很好用。
已收藏,非常感谢
好厉害的丹丹
居然不是坟贴 赶紧留名
技术贴留名
居然不是坟系列
赞,帮顶。学习
谢谢分享!另外,flexget有daemon模式,所以不加cron job也行,在配置文件最后写schedules:
# Run every task once per 10 minutes
- tasks: ***
minutes: 10然后运行时用flexget daemon start -d就行了。
手贱升级了python,现在google被墙了,easy_install无法安装怎么破?
后排混脸熟,顶顶更健康!
Flexget的好处在于比UT自带的RSS的刷新间隔要短不少,不过当时在windows下安装花了好久 - -
mark一下,暂时还没有盒子,说不定以后有呢?!
技术贴留名
内&&容:使用签名档&&
保存至快速回贴
为兴趣而生,贴吧更懂你。&或Install Flexget on Ubuntu and KodiBuntu
The reference in HTPC (Home Theater) and Media Server
Subscribe to TheMediaServer via Email
Enter your email address to subscribe to this site and receive notifications of new topics by email.
Email Address
& / & Install Flexget on Ubuntu and Kodibuntu
Install PIP / Flexget :
Pip is an python installer. With Ubuntu you should already have python 2.7 installed which is required by flexget. You can check it by typing: python2
Install pip: wget /pypa/pip/master/contrib/get-pip.py
sudo python get-pip.py
Install flexget: sudo pip install flexget
Known Pip Problems with flexget:
Check if it works: flexget -V
You should see:
You are on the latest release.
Install in your crontab: crontab -e
15,45 * * * * /usr/local/bin/flexget -L verbose execute --cronHere we set it every 30min when to clock it the 15th minute and the 45t minute. This will allow to download a TVShow 15min after it is usually finish and uploaded over the internet. It normally takes less then 15mins to be uploaded. Let say the TVshow aired at 19h. It will be over at 20h and available on internet at 20h10. The crontab will check at 20h15 and snap it. This allow you to have a TVshow approximatly 1h30 after the TVshow is aired.We set the Log output to verbose, which output a lot more information. you can remove this argument. We find it more useful to debug when we have this amount of log information.
Create the config dir: mkdir ~/.flexget
Create the config file: touch ~/.flexget/config.yml
Basic configurations:
Update Flexget:
sudo pip install --upgrade flexget
References – Offical Documentation:
Install Flexget:
Config plugins:
Share this:只需一步,快速开始
后使用快捷导航没有帐号?
查看: 2446|回复: 5
实现基于RSS的自动BT下载,以及http网页分享.(附赠自动记录温度脚本)
该用户从未签到
实现RSS自动BT下载,分享功能,所有操作均在-wheezy-raspbian官方系统下实现,老版本不太清楚有问题请自行调整.
脚本是凭记忆写的,未经测试,如有问题或者想要自定义设定请提问.
此脚本实现的功能有
更新到最新版本安装中文环境,输入法,VNC服务端安装ntfs-3g增强磁盘兼容性BT下载使用 transmission使用transmission-control代替原有的web管理前端RSS订阅自动下载使用FlexGet实现,每30分钟检查一次设定自动挂载sda1到/media/disk使用samba作为Windows网络邻居分享使用apache2和php5实现http网页文件分享(默认用户名:user ,默认密码:password)http+chrome可以实现自动播放mp4视频(其他浏览器其他视频都貌似不行)
新建一个脚本文件,将下面的代码复制进去,然后用sudo 执行.
#!/usr/bin/env bash
echo &[+] Updating packages&
apt- apt-get -y upgrade
echo &[+] Installing Chinese Enviroment&
apt-get -y install ttf-wqy-zenhei scim-pinyin
echo &[+] Installing VNC Server&
apt-get -y install tightvncserver
echo &[+] Installing Samba and Transmission packages&
apt-get -y install transmission-daemon python-transmissionrpc samba avahi-daemon
echo &[+] Downloading Transmission WebUI&
wget http://transmission-/files/transmission-control-v0.11_beta__full.tar.gz
tar -zxvf transmission-control-v0.11_beta__full.tar.gz
cp -frv web /usr/share/transmission/
echo &[+] Installing NTFS Support&
apt-get -y install ntfs-3g
echo &[+] Configuring Transmission&
service transmission-daemon stop
sed -i -re 's/(rpc-authentication-required\&:\ )([a-z]+)*/\1false/g' /etc/transmission-daemon/settings.json
sed -i -re 's/(rpc-whitelist-enabled\&:\ )([a-z]+)*/\1false/g' /etc/transmission-daemon/settings.json
sed -i -re 's/(download-dir\&:\ )([a-z]+)*(.*)/\1\&\/media\/disk\&,/g' /etc/transmission-daemon/settings.json
service transmission-daemon start
echo &[+] Setting up public Samba share&
mkdir /media/disk
chown debian-transmission /media/disk
echo &/dev/sda1& && & /media/disk/& &&&ext4& & rw,auto,user& && & 0& && & 0& && /etc/fstab
echo &[public]
comment = Public Shares
browsable = yes
path = /media/disk
public = yes
writable = yes
guest ok = yes& && /etc/samba/smb.conf
service samba restart
echo &[+] Installing Flexget&
apt-get -y install python-pip
pip install flexget
echo &[+] Setting Flexget&
flexget --db-cleanup
echo &*/30 *&&* * *& &pi& && &/usr/local/bin/flexget& && /var/spool/cron/crontabs/pi
sed -i 'd' /home/pi/.flexget/config.yml
echo &presets:
&&transmissionrpc:
& & download: #here is where the torrent file will be downloaded
& & transmission:
& && &host: localhost
& && &port: 9091
& && &username: #your user name
& && &password: #your password
& && &addpaused: no
tasks:
&&feed1:
& & rss: #your rss URL
& & preset: transmissionrpc
& & regexp:
& && &accept:
& && &&&- #some keyword will be accepted
& && &reject:
& && &&&- #some keyword will be rejected
&&feed2:
& & rss: #your rss URL
& & preset: transmissionrpc
& & regexp:
& && &accept:
& && &&&- #some keyword will be accepted
& && &reject:
& && &&&- #some keyword will be rejected& && /home/pi/.flexget/config.yml
echo &[+] Installing HTTP Server&
apt-get -y install apache2 php5 unzip
wget http://release.larsjung.de/h5ai/h5ai-0.22.1.zip
unzip h5ai-0.22.1.zip
cp -frv _h5ai /var/www/
echo &[+] Setting up HTTP Server&
sed -i &3 aDirectoryIndex index.html index.php /_h5ai/server/php/index.php& /etc/apache2/mods-enabled/dir.conf
sed -i &13 aAuthName &admin Access&& /etc/apache2/sites-available/default
sed -i &13 aAuthType Basic& /etc/apache2/sites-available/default
sed -i &13 aAuthUserFile /etc/apache2/passwd/passwords& /etc/apache2/sites-available/default
sed -i &13 aRequire valid-user& /etc/apache2/sites-available/default
ln -s /media/disk/ /var/www/
mkdir /etc/apache2/passwd
htpasswd -cb /etc/apache2/passwd/passwords user password
echo &[Rebooting]&
reboot
复制代码执行完毕后会自动重启.
如果想要设定transmission的webui的用户名密码,编辑/etc/transmission-daemon/settings.json 的&rpc-username&: 和&rpc-password&: 的字段.
按照已有的说明编辑~/.flexget/config.yml文件.如果前面已经设定了用户名密码,在此文件也要同样的设定一下.接受和排除字段使用正则表达式,如果只有一个字段只需要用- yourTV就行了,如果是有多个字段请用- .*your.*TV.*
默认是匹配所有说明,如果只需要匹配标题的话在accept/reject的同样缩进下新增一行 from: title ,可以有效缩小任务执行时间,减轻系统负担.
flexget还可以实现邮件通知,这个功能这里暂时不提.
自动记录温度脚本.新建一个.sh脚本文件和一个.log 平文本文件.
.log 文件的第一行可以随便写一个什么,我写的是Raspberry Pi Temperature Logging.
.sh脚本文件复制以下内容.
#!/bin/bash
######################################################################
# Raspberry Pi Temperature Logging
######################################################################
ti=`date`
tm=`/opt/vc/bin/vcgencmd measure_temp`
sudo sed -i &1 a$ti ----& $tm& yourlogfile
复制代码youlogfile处写上刚才建立的.log文件的绝对路径.
执行该脚本就会自动在刚才的log的文件中记录时间和温度.
想要定时执行的话用crontab -e复制代码添加一行*/10 * * * * sh your.sh复制代码就能每10分钟自动执行一次.记录温度了.
该用户从未签到
实现基于RSS的自动BT下载,以及http网页分享
本帖最后由 shinjisfg 于
00:55 编辑
实现RSS自动BT下载,分享功能,所有操作均在-wheezy-raspbian官方系统下实现,老版本不太清楚有问题请自行调整.
脚本是凭记忆写的,未经测试,如有问题或者想要自定义设定请提问.
此脚本实现的功能有
更新到最新版本安装中文环境,输入法,VNC服务端安装ntfs-3g增强磁盘兼容性BT下载使用 transmission使用transmission-control代替原有的web管理前端RSS订阅自动下载使用FlexGet实现,每30分钟检查一次设定自动挂载sda1到/media/disk使用samba作为Windows网络邻居分享使用apache2和php5实现http网页文件分享(默认用户名:user ,默认密码:password)无需下载可以实现播放mp4视频,预览文本等功能
安装wget /u/4521358/runme.sh
sudo sh runme.sh复制代码执行完毕后会自动重启.
所有BT下载好的文件都可以在http://树莓派IP 中看到,经过测试,chrome可以直接播放其中的mp4视频(其他浏览器其他视频都貌似不行).
如果想要设定transmission的webui的用户名密码,编辑/etc/transmission-daemon/settings.json 的&rpc-username&: 和&rpc-password&: 的字段.
按照已有的说明编辑~/.flexget/config.yml文件.如果前面已经设定了用户名密码,在此文件也要同样的设定一下.接受和排除字段使用正则表达式,如果只有一个字段只需要用- yourTV就行了,如果是有多个字段请用- .*your.*TV.*
默认是匹配所有说明,如果只需要匹配标题的话在accept/reject的同样缩进下新增一行 from: title ,可以有效缩小任务执行时间,减轻系统负担.
flexget还可以实现邮件通知,这个功能这里暂时不提.
TA的每日心情开心3&天前签到天数: 4 天[LV.2]偶尔看看I
该用户从未签到
支持了,不错。
该用户从未签到
该用户从未签到
支持了,不错。Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free.
I am facing an issue while trying to install the requirements for my django project.
I am unable to figure out why I'm getting this error.
Can someone lead me in the right direction?
&Running setup.py egg_info for package django-staticfiles
Traceback (most recent call last):
File "&string&", line 14, in &module&
File "/Users/glosseyvilly/Desktop/Workspace/chris_dev/mysite-env/build/django-staticfiles/setup.py", line 128, in &module&
'versiontools &= 1.6',
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/core.py", line 113, in setup
_setup_distribution = dist = klass(attrs)
File "build/bdist.linux-i686/egg/setuptools/dist.py", line 260, in __init__
File "build/bdist.linux-i686/egg/setuptools/dist.py", line 284, in fetch_build_eggs
File "build/bdist.linux-i686/egg/pkg_resources.py", line 563, in resolve
plugin_projects = list(plugin_env)
File "build/bdist.linux-i686/egg/pkg_resources.py", line 799, in best_match
File "build/bdist.linux-i686/egg/pkg_resources.py", line 811, in obtain
File "build/bdist.linux-i686/egg/setuptools/dist.py", line 327, in fetch_build_egg
File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 446, in easy_install
File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 476, in install_item
File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 655, in install_eggs
File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 930, in build_and_install
File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 919, in run_setup
File "build/bdist.linux-i686/egg/setuptools/sandbox.py", line 62, in run_setup
File "build/bdist.linux-i686/egg/setuptools/sandbox.py", line 105, in run
File "build/bdist.linux-i686/egg/setuptools/sandbox.py", line 64, in &lambda&
File "setup.py", line 29, in &module&
in a distutils ``setup.py`` file.
File "/var/folders/zm/zmC41KkWH5ObUL0cyVjWL++++TI/-Tmp-/easy_install-wsSHXC/versiontools-1.8.1/versiontools/__init__.py", line 354, in format_version
File "/var/folders/zm/zmC41KkWH5ObUL0cyVjWL++++TI/-Tmp-/easy_install-wsSHXC/versiontools-1.8.1/versiontools/__init__.py", line 183, in from_tuple
File "/var/folders/zm/zmC41KkWH5ObUL0cyVjWL++++TI/-Tmp-/easy_install-wsSHXC/versiontools-1.8.1/versiontools/__init__.py", line 126, in __new__
File "/var/folders/zm/zmC41KkWH5ObUL0cyVjWL++++TI/-Tmp-/easy_install-wsSHXC/versiontools-1.8.1/versiontools/__init__.py", line 279, in _find_source_tree
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/inspect.py", line 936, in getouterframes
framelist.append((frame,) + getframeinfo(frame, context))
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/inspect.py", line 911, in getframeinfo
lines, lnum = findsource(frame)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/inspect.py", line 573, in findsource
if pat.match(lines[lnum]): break
IndexError: list index out of range
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "&string&", line 14, in &module&
File "/Users/glosseyvilly/Desktop/Workspace/chris_dev/mysite-env/build/django-staticfiles/setup.py", line 128, in &module&
'versiontools &= 1.6',
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/distutils/core.py", line 113, in setup
_setup_distribution = dist = klass(attrs)
File "build/bdist.linux-i686/egg/setuptools/dist.py", line 260, in __init__
File "build/bdist.linux-i686/egg/setuptools/dist.py", line 284, in fetch_build_eggs
File "build/bdist.linux-i686/egg/pkg_resources.py", line 563, in resolve
plugin_projects = list(plugin_env)
File "build/bdist.linux-i686/egg/pkg_resources.py", line 799, in best_match
File "build/bdist.linux-i686/egg/pkg_resources.py", line 811, in obtain
File "build/bdist.linux-i686/egg/setuptools/dist.py", line 327, in fetch_build_egg
File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 446, in easy_install
File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 476, in install_item
File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 655, in install_eggs
File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 930, in build_and_install
File "build/bdist.linux-i686/egg/setuptools/command/easy_install.py", line 919, in run_setup
File "build/bdist.linux-i686/egg/setuptools/sandbox.py", line 62, in run_setup
File "build/bdist.linux-i686/egg/setuptools/sandbox.py", line 105, in run
File "build/bdist.linux-i686/egg/setuptools/sandbox.py", line 64, in &lambda&
File "setup.py", line 29, in &module&
in a distutils ``setup.py`` file.
File "/var/folders/zm/zmC41KkWH5ObUL0cyVjWL++++TI/-Tmp-/easy_install-wsSHXC/versiontools-1.8.1/versiontools/__init__.py", line 354, in format_version
File "/var/folders/zm/zmC41KkWH5ObUL0cyVjWL++++TI/-Tmp-/easy_install-wsSHXC/versiontools-1.8.1/versiontools/__init__.py", line 183, in from_tuple
File "/var/folders/zm/zmC41KkWH5ObUL0cyVjWL++++TI/-Tmp-/easy_install-wsSHXC/versiontools-1.8.1/versiontools/__init__.py", line 126, in __new__
File "/var/folders/zm/zmC41KkWH5ObUL0cyVjWL++++TI/-Tmp-/easy_install-wsSHXC/versiontools-1.8.1/versiontools/__init__.py", line 279, in _find_source_tree
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/inspect.py", line 936, in getouterframes
framelist.append((frame,) + getframeinfo(frame, context))
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/inspect.py", line 911, in getframeinfo
lines, lnum = findsource(frame)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/inspect.py", line 573, in findsource
if pat.match(lines[lnum]): break
IndexError: list index out of range
----------------------------------------
Command python setup.py egg_info failed with error code 1
Exception information:
Traceback (most recent call last):
File "/Library/Python/2.6/site-packages/pip-1.0.2-py2.6.egg/pip/basecommand.py", line 126, in main
self.run(options, args)
File "/Library/Python/2.6/site-packages/pip-1.0.2-py2.6.egg/pip/commands/install.py", line 223, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/Library/Python/2.6/site-packages/pip-1.0.2-py2.6.egg/pip/req.py", line 986, in prepare_files
req_to_install.run_egg_info()
File "/Library/Python/2.6/site-packages/pip-1.0.2-py2.6.egg/pip/req.py", line 222, in run_egg_info
command_desc='python setup.py egg_info')
File "/Library/Python/2.6/site-packages/pip-1.0.2-py2.6.egg/pip/__init__.py", line 255, in call_subprocess
% (command_desc, proc.returncode))
InstallationError: Command python setup.py egg_info failed with error code 1
2,21111329
1,76541534
I ran into this same error while using the native Python 2.6.1 on Mac OS X 10.6 to install django-imagekit. Some googling revealed this:
which suggested this:
pip install versiontools
and then I was able to install django-imagekit.
Same issue when I try to install MySQL-python
apt-get install libmysqlclient-dev python-dev
solved my problem.
I think you need to install the python-dev version. Hope that helps
From this error
framelist.append((frame,) + getframeinfo(frame, context))
"/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/inspect.py",
line 911, in getframeinfo
lines, lnum = findsource(frame)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/inspect.py", line 573, in findsource
if pat.match(lines[lnum]): break
IndexError: list index out of range
it appears that findsource(frame) is unable to find a legal lnum for frame. Are you sure that all the programs are aligned to known compatible versions (python, django, pip, etc)?
Before risking to pollute your system installation of python, I suggest that you use virtualenv to isolate the python environment from the one shipped with the OS.
2,21111329
Your Answer
Sign up or
Sign up using Google
Sign up using Facebook
Sign up using Stack Exchange
Post as a guest
Post as a guest
By posting your answer, you agree to the
Not the answer you're looking for?
Browse other questions tagged
Stack Overflow works best with JavaScript enabled

我要回帖

更多关于 pip install django 的文章

 

随机推荐