天天看點

Python網絡爬蟲 - 1. 準備工作

1. 安裝Beautiful Soup

下載下傳位址

http://www.crummy.com/software/BeautifulSoup/bs4/download/4.4/

解壓後,進入根目錄

控制台下運作:

python setup.py install

運作結果:

Processing dependencies for beautifulsoup4==4.4.0

Finished processing dependencies for beautifulsoup4==4.4.0

然後,繼續在控制台下運作:

pip install beautifulsoup4

建立一個測試檔案

test_soup.py

python test_soup.py

如果沒有錯誤發生, 說明安裝成功!!