Python+PhantomJS+selenium 可以解决你的烦恼参考这篇文章:http://blog.chinaunix.net/uid-22414998-id-3692113.html?page=3 测试代码: #coding=utf-8 from selenium import webdriver driver = webdriver.PhantomJS() driver.get("https://s.taobao.com/search?q=iphone") datas = driver.find_elements_by_class_name('J_ItemPic') for _ in datas: print _.get_attribute('src')
參考這個回答: python爬虫案例 或是這個教學視頻: 如何使用Python 的requests 及BeautifulSoup4 完成淘寶爬蟲? P.S. 建議發問前可以多爬爬文,可能答案早就在裡面囉!
Python+PhantomJS+selenium 可以解决你的烦恼
参考这篇文章:http://blog.chinaunix.net/uid-22414998-id-3692113.html?page=3
测试代码: