NanoSoftTech
 
*
Welcome, Guest. Please login or register. September 07, 2010, 11:53:09 am


Login with username, password and session length


  Print  

Author Topic: [python] Open URL  (Read 499 times)

0 Members and 1 Guest are viewing this topic.

Offline NanoSoftTech

  • NanoSoftTech
  • Administrator
  • Newbie
  • *****
  • Posts: 1,228
  • Karma: 0
    • NanoSoftTech
[python] Open URL
« on: January 06, 2010, 12:35:56 am »
http://docs.python.org/library/urllib.html



import urllib


url = ‘http://www.google.com’

page = urllib.urlopen(url)
pagedata = page.read()


import urllib


#open url
readURL=urllib.urlopen('http://www.python.org').read()
print readURL

Love like fine sand. Grasp it and it will quickly slip through your fingers. Cup it gently and it will fill the voids of your soul as sand seek ti fill the spaces in your hands.
ความรักก็เหมือนเม็ดทราย เมื่อใดที่รีบคว้ามันไว้ เม็ดทรายนั้นจะไหลออกทางร่องนิ้ว. แต่เมื่อค่อยๆประคองมันไว้ มันก็จะอยู่ในมือของคุณ และถ้าคุณทนุถนอมความรัก มันก็อยู่ในทุกช่องว่างในหัวใจ เช่นเดียวกับเม็ดทรายที่อยู่ในกำมือ.

  Print  
 
 

Powered by MySQL Powered by PHP Powered by SMF 2.0 RC3 | SMF © 2006–2010, Simple Machines LLC

Valid XHTML 1.0! Valid CSS! Dilber MC Theme by HarzeM
Page created in 0.088 seconds with 19 queries.