Skip to content

Thinking more…

Just thinking more…

Day: September 14, 2006

Posted on 2006/09/14

用 python urllib 擷取網頁

就是用 urllib 來作。
下面的程式有點笨,應該可以寫的更好。

import urllib
page=urllib.urlopen("http://www.google.com.tw")
while 1:
line=page.readline()
if line:
print line
else:
break

參考資料:

  • Jon Udell: del.icio.us
  • XML.com: Introducing del.icio.us
  • Syntactic Sugar: Scuttle to del.icio.us
September 2006
M T W T F S S
 123
45678910
11121314151617
18192021222324
252627282930  
« Aug   Oct »

站內搜索

Categories

  • .Net
  • Android
  • Blog
  • Boo
  • C/C++
  • Cook
  • Linux 及其相關
  • Lyrics
  • Python
  • Visual FoxPro
  • Wine品嚐美酒
  • 亂亂逛
  • 個人新聞台
  • 理財
  • 資訊相關Idea與筆記
  • 雜記,隨筆
  • 電影流水帳
Privacy Policy Proudly powered by WordPress