2015. 2. 8. 15:57
336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.
#! -*- coding: utf-8 -*-
import urllib2
import re
#connect to a URL
website=urllib2.urlopen('http://www.naver.com')
#read html code
html=website.read()
#user re.findall to get all the links
links=re.findall('"((http|ftp)s?://.*?)"',html)
print links
'Python' 카테고리의 다른 글
fahToCel.py (0) | 2015.02.08 |
---|---|
celToFah.py (0) | 2015.02.08 |
kmToMph (0) | 2015.02.07 |
passwordGenerator.py (0) | 2015.02.07 |
guessingGame2.py (0) | 2015.02.07 |