写了个脚本定时采集VeryCD首页的名言警句玩玩

Type: 杂七杂八 - Posted at: 2010/07/03 20:59
Tags : python verycd
  快下班的时候无聊,上上verycd看看,挺喜欢verycd首页的名言警句的,于是看了一下,发现是从一个js里面读的。
  该js大概十分钟更新一次,每一次更新十条,于是想着写一个脚本把这个小东西给收集下来。脚本很简单,很快写好了,然后想到弄到自己的blog首页去。加上以后把脚本步署到了crontab,5分钟抓一次。
  ok,这就是你们现在看到的首页啦。
  这样连续跑下去,应该有不小的一个名言警句数据库了,不知道verycd有多少库存。
  ==更新==
  截至到现在已经跑到了255条,基本上已经很少有新的刷出来了。其中还有几条类似“打死不上弹窗广告”之类的非名言警句。这脚本就继续放着跑着吧。反正blog没啥访问,那么多流量都不知道怎么耗掉(这话说的有些许凄惨了...T T)。
<
>
1# C.J   said this at 2010-07-05 11:44 : [Quote]
So, maybe i just want 2 say: what a terrific blog.
I admire this bloger from my deep heart.Though i can't get the chinese word, so what!
2# Admin   said this at 2010-07-05 11:47 : [Quote]
Quoted C.J:

So, maybe i just want 2 say: what a terrific blog.
I admire this bloger from my deep heart.Though i can't get the chinese word, so what!


Go your.
3# 棉花糖   said this at 2010-07-05 17:41 : [Quote]
this is your baby
4# 0000   said this at 2010-09-02 19:14 : [Quote]
名言警句 那是个js,~
5# Admin   said this at 2010-09-02 21:32 : [Quote]
Quoted 0000:

名言警句 那是个js,~


恩,是的。
我是从js那边抓的。
6# 152312   said this at 2011-06-19 03:34 : [Quote]
请问着个代码如何实现?可否告知一下,谢谢了。
7# 152312   said this at 2011-06-19 03:34 : [Quote]
请问在DZ论坛系统下 如何实现标题自动变化名言警句呢?
8# Admin   said this at 2011-06-20 20:27 : [Quote]
Quoted 152312:

请问着个代码如何实现?可否告知一下,谢谢了。


这是我很早之前用python写的一个小脚本,其实很简单,需要的话可以发给你。
另外php我完全不熟,所以帮不上忙了
Name:  *   Remember me
E-mail:  *  Not public, supported by Gravator
Website:      Not required
Question:
1 * 6 = *
Content: