from RSS feed 不输出全文?一样搞定你.
流量就是金钱,所以有些网站很吝啬,RSS feed 只给你看几行字,要看全文?对不起,流量送俾我先。本文教你如何在 Google Reader 里面搞定这些铁公鸡,不是用 iframe 预览页面,而是只有正文,全文,图文。
更新:感谢 鲜果 Plus 脚本的作者 CIH 的推荐,这样鲜果用户也可以实现自动全文了
您需要使用 Firefox 的用户脚本管理器 Greasemonkey, 它近日更新的 0.8 版已支持最新版本的 Firefox 3. 让 Google Reader 获取全文 feed 的脚本是 google reader full feed changer, 或者 直接安装它。装好之后,离完成就只剩最后一点点设置了:
以 新浪体育新闻 为例,打开一篇新浪上的原文,按 ctrl+u 查看页面源代码,发现正文部分是用 <div> 标注的,那么修改一下刚才的脚本,该脚本通常位于 Firefox 配置文件夹下:
%appdata%\Mozilla\Firefox\Profiles\****
\gm_scripts\googlereaderfullfeedchan.user.js
编辑它,在第九行以下,添加一个 SITE_INFO:
{
url: 'http://(sports|rss).sina.com.cn',
xpath: '//div[@class="artibody"]',
charset: 'gb2312' //非必需
},
保存脚本文件,F5 刷新 Google Reader, 看看新浪的 feed 吧,已经是文首截图的样子了。
现在您知道了如何添加一个 SITE_INFO, 添加一下您需要看全文的 feed 信息,以后就省事喽。注意事项:
- 如果网站域名和 feed 域名不一样,需要把两个域名都写进去,比如:
url: 'http://(site.com|feed.feedsky.com)',
- class 和 id 都可以识别
- 如果出现乱码,在该网站页面源代码中搜索 charset, 设定进 SITE_INFO 中
- 目前该脚本还不能对付 cnBeta, 因为 cnBeta 的文章地址设置了一个跳转重定向。没关系,订阅 feeds.feedburner.com/cnbeta_full 就好了
Ubuntu下安装amule-dlp
加源
10.04
代码:
deb http://ppa.launchpad.net/happyaron/amule-dlp/ubuntu lucid main
deb-src http://ppa.launchpad.net/happyaron/amule-dlp/ubuntu lucid main
9.10
代码:
deb http://ppa.launchpad.net/happyaron/amule-dlp/ubuntu karmic main
deb-src http://ppa.launchpad.net/happyaron/amule-dlp/ubuntu karmic main
9.04
代码:
deb http://ppa.launchpad.net/happyaron/amule-dlp/ubuntu jaunty main
deb-src http://ppa.launchpad.net/happyaron/amule-dlp/ubuntu jaunty main
8.10
代码:
deb http://ppa.launchpad.net/happyaron/amule-dlp/ubuntu intrepid main
deb-src http://ppa.launchpad.net/happyaron/amule-dlp/ubuntu intrepid main
8.04
代码:
deb http://ppa.launchpad.net/happyaron/amule-dlp/ubuntu hardy main
deb-src http://ppa.launchpad.net/happyaron/amule-dlp/ubuntu hardy main
加key
代码:
sudo apt-key adv –keyserver keyserver.ubuntu.com –recv-keys DDA4DB69
安装
代码:
sudo apt-get update
代码:
sudo apt-get install amule-dlp amule-dlp-gnome-support amule-dlp-ipfilter
系统级ipfilter.dat,默认开启。如果不需要,不安装amule-dlp-ipfilter软件包就可以了,它是作为推荐软件包列出的。ipfilter.dat文件来自eMule Pawcio。
inux试用过几回,可是因为windows下养着骡子所以总是不能常驻
随着amule越来越成熟和dlp版本放出
就想着最好能把骡子牵到linux下养
不过卸磨杀骡重新养起这种赔本买卖咱是不干的
近来找到一个从emule向amule移植的指导帖,整理了一下和大家分享
- 直接通用的设定文件
emule的设定目录是/emule/config/,而amule的是~/.aMule/
所谓直接通用就是从emule的目录直接拷贝到amule的目录
- 服务器设定相关的(这些并不重要,因为都可以在amule里重新设定更新的URL)
addresses.dat 服务器更新网址
server.met 服务器清单
staticservers.dat 静态服务器清单
ipfilter.dat ip过滤列表
key_index.dat,
load_index.dat,
nodes.dat,
preferencesKad.dat,
src_index.dat 以上皆为Kad相关文件
- 用户和积分相关(很重要哇,不然就得从头养)
cryptkey.dat,
preferences.dat 这两个就是区别你和其他用户的身份文件了
clients.met 其他用户在你这里的积分
emfriends.met 好友列表
- 文件和统计相关
known.met 下载过的文件历史
known2.met 共享过的文件历史
- 不能直接通用的设定文件
- 自定义分类文件
在linux下对emule的Category.ini文件使用grep命令,直接抓出Category.ini中的分类信息
代码
grep -E "^\[Cat|^Title|^Incoming|^Comment|^Color|^a4afPriority" Category.ini | sed 1,6d | sed 's/#/\\#/g' | sed 's/&/\\&/g' | sed 's/a4afPriority/Priority/g'
运行后可以得到类似如下的输出
[Cat\#1]
Title=分类一
Incoming=g:\eMule\Incoming\分类一
Comment=
Color=6619222
Priority=0
[Cat\#2]
Title=分类二
Incoming=G:\eMule\Incoming\分类二
Comment=
Color=1852403824
Priority=1
将如上信息按照如下的格式写入amule的amule.conf文件
[General]
Count=...
[Cat\#1]
Title=...
Incoming=...
Comment=...
Color=...
Priority=...
[Cat\#2]
Title=...
Incoming=...
Comment=
Color=...
Priority=...
...
- 统计信息文件
打开emule的statistics.ini,找到[Statistics]段落中的所有内容复制到
~/.aMule/amule.conf的[Statistics]段落下,覆盖原有数据,但要保留amule.conf
的MaxClientVersions和DesktopMode两个项目。
amule的偏好设定文件为~/.aMule/amule.conf,相当于emule的preferences.ini
- 未完成文件
直接用amule导入
以上资料来自 http://wiki.amule.org/index.php/Migrate_from_eMule_to_aMule