python下分析网页的好工具:BeautifulSoup

在ternimal输入:

curl http://www.crummy.com/software/BeautifulSoup/bs4/download/4.1/beautifulsoup4-4.4.1.tar.gz >> beautifulsoup4-4.4.1.tar.gz  

tar zxvf beautifulsoup4-4.1.2.tar.gz  

python setup.py install  

原文地址:https://www.cnblogs.com/terryc/p/5063564.html