2017年6月6日
摘要: import requests from bs4 import BeautifulSoup import lxml import re import time import random import pymysql.cursors from selenium import webdriver connection = pymysql.connect(host='localhost', ... 阅读全文
posted @ 2017-06-06 16:40 gaoxiangTOP 阅读(128) 评论(0) 推荐(0) 编辑
摘要: import requests from bs4 import BeautifulSoup import lxml import re import time import random import pymysql.cursors connection = pymysql.connect(host='localhost', user=... 阅读全文
posted @ 2017-06-06 09:11 gaoxiangTOP 阅读(348) 评论(0) 推荐(0) 编辑
  2017年6月5日
摘要: import os # 列出当前目录下所有的文件 os.chdir(r"\\Win-l4hi2f9h2r4\店铺数据\2016\花吉\10\media") files =os.listdir (r"\\Win-l4hi2f9h2r4\店铺数据\2016\花吉\10\media") for filename in files: portion = list(os.path.splite... 阅读全文
posted @ 2017-06-05 15:37 gaoxiangTOP 阅读(123) 评论(0) 推荐(0) 编辑
  2017年6月4日
摘要: import lxml from bs4 import BeautifulSoup import time from selenium import webdriver import re driver = webdriver.PhantomJS() driver.set_window_size(1600,20000) driver.get("https://item.taobao.com/it... 阅读全文
posted @ 2017-06-04 17:38 gaoxiangTOP 阅读(372) 评论(0) 推荐(0) 编辑