看板 Perl 關於我們 聯絡資訊
參考google寫了一個如下的程式可以印出靜態網頁中的Link use LWP::Simple; use HTML::Parse; use HTML::Element; $url ="http://靜態網頁"; $html = get($url); $parsed_html = parse_html($html); for (@{ $parsed_html->extract_links() }) { $link = $_->[0]; print "$link\n"; } 若url 換成動態網頁 ex: http://www.softking.com.tw/soft/download.asp?fid3=23516 這個時候就沒有效果了 請問一下 這個問題有人知道嗎? 謝謝 -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 192.192.16.226
mosquito520:我猜是你的agent被擋掉了... 05/29 06:12
mosquito520:在get之後把你的$html印出來看看就可以確定問題在哪了 05/29 06:13