summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--util/weather.perl10
1 files changed, 8 insertions, 2 deletions
diff --git a/util/weather.perl b/util/weather.perl
index 911ff804..5e2c8d4f 100644
--- a/util/weather.perl
+++ b/util/weather.perl
@@ -1,5 +1,5 @@
#!/usr/bin/perl
-# $Id: weather.perl,v 1.4 2003/02/07 15:09:14 victor Exp $
+# $Id: weather.perl,v 1.5 2003/03/01 06:12:20 bbs Exp $
#
# ����]���ܡA�ݬ� bbspost �����|�O�_���T�C
# �p�G�o�X�� post �S����H���i�ӬO�� URL �䤣��A�h�T�w�@�U�ण��ݨ�
@@ -19,9 +19,15 @@ close DATE;
# Header
# ���e
-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 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/mar/today/Wnews1.htm|");
while (<WEATHER>) {
+ last if /����Ѯ�/;
+}
+
+while (<WEATHER>) {
+ last if /top\.gif/;
print BBSPOST if ($_ ne "\n");
}
close WEATHER;