2018年4月23日
摘要: # coding:utf-8 import time from threading import Thread def foo(x):#这里可以带参数def foo(x) print "foo start 启动耗时".decode('utf-8'), time.ctime() time.sleep(x) print "foo start 运行结束:".decode(... 阅读全文
posted @ 2018-04-23 20:38 寒星12345678999 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 去年写的一个小功能,一年过得好快,好快! 目的:爬取京东商品详情页面的内容(商品名称、价格、评价数量)后存储到xls文档中,方便商家分析自己商品的动态。 软件:chrome(windows)、chromedriver.exe、phantomjs.exe 、anaconda、pycharm 实现:用s 阅读全文
posted @ 2018-04-23 16:48 寒星12345678999 阅读(478) 评论(1) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- from __future__ import division from selenium import webdriver import time from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait ... 阅读全文
posted @ 2018-04-23 16:35 寒星12345678999 阅读(930) 评论(0) 推荐(0) 编辑
摘要: 最新的chromedriver 66.0.3359.117 的对应chromedriver版本为 2.38 http://npm.taobao.org/mirrors/chromedriver/ WebDriverException: Message: unknown error: call fun 阅读全文
posted @ 2018-04-23 16:34 寒星12345678999 阅读(2015) 评论(0) 推荐(0) 编辑