Selenium环境测试
测试代码
import webdriver
driver = webdriver.Chrome()
driver.get('http://www.ptpress.com.cn/search/books')
data = driver.page_source
print(data)
Mongodb路径配置
D:\Program Files\MongoDB\bin
mongod --dbpath "D:\Program Files\MongoDB\data\db"
mongod --bind_ip 0.0.0.0 --logpath "D:\Program Files\MongoDB\data\logs\mongo.log" --logappend --dbpath "D:\Program Files\MongoDB\data\db" --port 27017 --serviceName "MongoDB" --serviceDisplayName "MongoDB" --install