看板Maple
標 題Re: 新聞閱讀工具 V1.1 (newspaper.c)
發信站NTITBBS (Sat May 11 23:13:27 2002)
轉信站Ptt!news.cs.nthu!NTITBBS
※ 引述《[email protected] (風之妖精)》之銘言:
> 有件事 我覺得很奇怪
> 勁報與 資傳網 這兩個電子報 我在奇摩新聞裡 好像也沒看到連結
> 也都抓不到資料
> 應該已經沒了吧...
剛看了一下發現真的不見了......
請把 newspaper.c 中的
static int news_class[10] = {NEWS_UDN, NEWS_CTNEWS, NEWS_TWDAILY,
NEWS_REUTERS, NEWS_CNA, NEWS_FTV,
NEWS_PNN, NEWS_CNYES,
NEWS_ZDNET, NEWS_GREAT
};
以上紅色部份去掉。
static char *newsname[4][3] =
{
{"聯合新聞網","中時電子報","台灣 日報"},
{"路 透 社","中央 新聞","民視 新聞"},
{"勁 報","鉅 亨 網","資 傳 網"},
{"大成報影報","離 開",""}
};
上面修改為
static char *newsname[4][3] =
{
{"聯合新聞網","中時電子報","台灣 日報"},
{"路 透 社","中央 新聞","民視 新聞"},
{"鉅 亨 網","大成報影報","離 開"}
};
下面紅色部份也是去掉
static char newsname2[][10] = {"udn", "ctnews", "twdaily", "reuters", "cna",
"ftv",
"pnn", "cnyes",
"2dnet ", "great"}
也請大家自行把 etc/newslist.conf 有關這二個新聞的部份刪除及 takenews.c 中的以下
紅色
部份。
static char *newsname[] = {"udn", "ctnews", "twdaily", "reuters", "cna", "ftv"
,
"pnn", "cnyes",
"2dnet", "great"};
此外,其實 takenews.c 這隻程式寫的非常不好,很難做延伸吧,只要那網頁有所變動的
話可能抓資料就會有所問題了,找個時間再來整個改寫那程式吧 :Q
--
※ Origin: 碧海藍天 <bbs.ntit.edu.tw>
◆ From: 61-216-131-242.hinet-ip.hinet.net
--
※ Origin: 碧海藍天 <bbs.ntit.edu.tw>
◆ From: 61-216-131-242.hinet-ip.hinet.net