summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorvictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-05-07 00:54:42 +0800
committervictor <victor@63ad8ddf-47c3-0310-b6dd-a9e9d9715204>2003-05-07 00:54:42 +0800
commit5b1545cbda010c4092992d60e1a2ca2a1cff672f (patch)
tree83fa04d20348293ab716da6d08f7480dccc29502
parent980df4d9684121dca6964247784ea7983f6ea4c4 (diff)
downloadpttbbs-5b1545cbda010c4092992d60e1a2ca2a1cff672f.tar
pttbbs-5b1545cbda010c4092992d60e1a2ca2a1cff672f.tar.gz
pttbbs-5b1545cbda010c4092992d60e1a2ca2a1cff672f.tar.bz2
pttbbs-5b1545cbda010c4092992d60e1a2ca2a1cff672f.tar.lz
pttbbs-5b1545cbda010c4092992d60e1a2ca2a1cff672f.tar.xz
pttbbs-5b1545cbda010c4092992d60e1a2ca2a1cff672f.tar.zst
pttbbs-5b1545cbda010c4092992d60e1a2ca2a1cff672f.zip
change source
git-svn-id: http://opensvn.csie.org/pttbbs/pttbbs/trunk/pttbbs@822 63ad8ddf-47c3-0310-b6dd-a9e9d9715204
-rw-r--r--util/weather.perl9
1 files changed, 2 insertions, 7 deletions
diff --git a/util/weather.perl b/util/weather.perl
index 2cfd9e13..5edc147a 100644
--- a/util/weather.perl
+++ b/util/weather.perl
@@ -1,5 +1,5 @@
#!/usr/bin/perl
-# $Id: weather.perl,v 1.7 2003/04/02 09:19:46 victor Exp $
+# $Id: weather.perl,v 1.8 2003/05/06 16:54:42 victor Exp $
#
# 不能跑的話,看看 bbspost 的路徑是否正確。
# 如果發出的 post 沒有氣象報告而是說 URL 找不到,則確定一下能不能看到
@@ -20,14 +20,9 @@ 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.gigigaga.com/home/weather.asp|");
+open(WEATHER, "$LYNX -assume_charset=big5 -assume_local_charset=big5 -dump -nolist ftp://ftpsv.cwb.gov.tw/pub/forecast/W002.txt|");
while (<WEATHER>) {
- last if /首頁/;
-}
-
-while (<WEATHER>) {
- last if /dot\.gif/;
print BBSPOST if ($_ ne "\n");
}
close WEATHER;