Selenium
示例
from selenium import webdriver
import os
browser = webdriver.Firefox()
browser.get("http://www.baidu.com")
browser.find_element_by_id("kw").send_keys("selenium")
browser.find_element_by_id("su").click()
os.system("pause")
browser.quit()
Beautiful Soup
文档:https://www.crummy.com/software/BeautifulSoup/bs4/doc.zh/
安装:pip install beautifulsoup4