summaryrefslogtreecommitdiffstats
path: root/util/weather.perl
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-04-02 17:19:46 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-04-02 17:19:46 +0800
commit2f9f7c58c8ca788f7bfaff72b53d387678d45608 (patch)
tree1ca0823b55b6ad93928df0686478fd5e2830372d /util/weather.perl
parent66fa9d458270fb5f46300acd4e11e9c7e36384f9 (diff)
downloadpttbbs-2f9f7c58c8ca788f7bfaff72b53d387678d45608.tar
pttbbs-2f9f7c58c8ca788f7bfaff72b53d387678d45608.tar.gz
pttbbs-2f9f7c58c8ca788f7bfaff72b53d387678d45608.tar.bz2
pttbbs-2f9f7c58c8ca788f7bfaff72b53d387678d45608.tar.lz
pttbbs-2f9f7c58c8ca788f7bfaff72b53d387678d45608.tar.xz
pttbbs-2f9f7c58c8ca788f7bfaff72b53d387678d45608.tar.zst
pttbbs-2f9f7c58c8ca788f7bfaff72b53d387678d45608.zip
change link
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@766 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
Diffstat (limited to 'util/weather.perl')
-rw-r--r--util/weather.perl8
1 files changed, 4 insertions, 4 deletions
diff --git a/util/weather.perl b/util/weather.perl
index f7a1559c..2cfd9e13 100644
--- a/util/weather.perl
+++ b/util/weather.perl
@@ -1,5 +1,5 @@
#!/usr/bin/perl
-# $Id: weather.perl,v 1.6 2003/04/02 02:48:46 in2 Exp $
+# $Id: weather.perl,v 1.7 2003/04/02 09:19:46 victor Exp $
#
# 不能跑的話,看看 bbspost 的路徑是否正確。
# 如果發出的 post 沒有氣象報告而是說 URL 找不到,則確定一下能不能看到
@@ -20,14 +20,14 @@ close DATE;
# Header
# 內容
#open(WEATHER, "$LYNX -assume_charset=big5 -assume_local_charset=big5 -dump http://www.cwb.gov.tw/V3.0/weather/text/W03.htm |");
-open(WEATHER, "$LYNX -assume_charset=big5 -assume_local_charset=big5 -dump -nolist http://www.libertytimes.com.tw/2003/new/apr/today/Wnews1.htm|");
+open(WEATHER, "$LYNX -assume_charset=big5 -assume_local_charset=big5 -dump -nolist http://www.gigigaga.com/home/weather.asp|");
while (<WEATHER>) {
- last if /今日天氣/;
+ last if /首頁/;
}
while (<WEATHER>) {
- last if /top\.gif/;
+ last if /dot\.gif/;
print BBSPOST if ($_ ne "\n");
}
close WEATHER;