老師 cmd報(bào)錯(cuò)了
Command python setup.py egg_info failed with error code 1 in c:\users\yl\appdata
\local\temp\pip-build-yl\beautifulsoup4
Storing complete log in C:\Users\yl\pip\pip.log
Command python setup.py egg_info failed with error code 1 in c:\users\yl\appdata
\local\temp\pip-build-yl\beautifulsoup4
Storing complete log in C:\Users\yl\pip\pip.log
2015-12-18
對于Python 3.x,代碼需要做相應(yīng)改變:
import urllib.request
resp = urllib.request.urlopen('http://www.baidu.com')
print(resp.getcode())
import urllib.request
resp = urllib.request.urlopen('http://www.baidu.com')
print(resp.getcode())
2015-12-18
想要用最簡單的方式實(shí)現(xiàn)對數(shù)據(jù)庫有效數(shù)據(jù)的爬去,并進(jìn)行清洗與處理,期待更多相關(guān)知識學(xué)習(xí)
2015-12-18
Python網(wǎng)頁下載器有:
* urllib2 (Python官方基礎(chǔ)模塊)
* requests (第三方包,更強(qiáng)大)
* urllib2 (Python官方基礎(chǔ)模塊)
* requests (第三方包,更強(qiáng)大)
2015-12-18