使用selenium爬取某寶商品信息

使用selenium +PhantomJS()/Chrome爬取 淘寶頁面 首先創建一個config.py的文件。在裏面做些適當配置: # 緩存模式 SERVICE_ARGS = ['--disk-cache=true'] # 搜索名稱 KEYWORD = '情人節禮物' 在主文件中編寫代碼: # coding:utf-8 import re from pprint import pprint f
相關文章
相關標籤/搜索