看板Maple
标 题Re: 新闻阅读工具 V1.0 DOC
发信站清华资讯(枫桥驿站) (Thu Jan 2 15:39:40 2003)
转信站Ptt!news.cs.nthu!maple
※ 引述《[email protected] (Search Myself)》之铭言:
> 这个程式是参考元智风之塔(bbs.yzu.edu.tw)的新闻阅读工具而写出来的,其中有许多
> 的地方写的并不是很理想,也请大家多多指教。 ^_^
> 以下为程式的用法:
> 1. 执行 takenews mkdir
> 2. 把 takenews 放入 crontab 定时执行每二小时抓一次,下面为设定方法
> 0 */2 * * * bin/takenews /home/bbs/etc/newslist.conf
> 3. 定时清 /home/bbs/run/takenews.log 以免档案过大
> Ps. 此程式每次抓取新闻时并非整个重抓,而是只抓取新的新闻部份,以免浪费时间
> 以及整个网路频宽。
> 目前此程式已挂入 bbs.ntit.edu.tw 中了,有兴趣者可以来这参观。 :)
在3.10 放上碧海的新闻 不晓得我放上去的方法对不对
我把newspaper.c 放到home/bbs/src/maple/bso里 再修改Makefile
把takenews.c 放到/home/bbs/src/util下面 修改Makefile
config.h struct.h改了 /home/bbs/etc/newslist.conf也有加了
在/home/bbs下建了一个资料夹 news
make 都ok
也执行了bin/takenews /home/bbs/etc/newslist.conf
可是似乎都没有抓到新闻耶
不晓得是不是还有哪些地方没设定或是修改的 麻烦各位大大指点一下
以下我的 takenews.log
........................
PARSE take news/udn/leisure/@class success in take_newsclass 02/12/31 20:16:4
PARSE take news/udn/sports/@class success in take_newsclass 02/12/31 20:16:4
PARSE take news/udn/entertain/@class success in take_newsclass 02/12/31
PARSE take news/udn/finance/@class success in take_newsclass 02/12/31 20:16:4
PARSE take news/udn/international/@class success in take_newsclass 02/12/31
PARSE take news/udn/society/@class success in take_newsclass 02/12/31 20:18:4
PARSE take news/udn/polity/@class success in take_newsclass 02/12/31 20:18:4
PARSE takenews.c success 02/12/31 20:18:43
--
※ Origin: 枫桥驿站<bbs.cs.nthu.edu.tw> ◆ From: 229047.D18-229.ncu.edu.tw