上一页 1 ··· 9 10 11 12 13 14 15 下一页

2018年8月30日

读取excel里面的数据

摘要: import xlrd # 打开文件 bk = xlrd.open_workbook(file_name) # 拿到sheet1 的表单 sh = bk.sheet_by_name("Sheet1") # 获取行数 row_num = sh.nrows row_list = [] for i in 阅读全文

posted @ 2018-08-30 13:30 袁佳佳 阅读(143) 评论(1) 推荐(0)

2018年8月27日

selenium 下滑到最后

摘要: 阅读全文

posted @ 2018-08-27 10:30 袁佳佳 阅读(157) 评论(0) 推荐(0)

2018年8月25日

获取免费ip_存入excel_用了线程池_封装清晰

摘要: from lxml import etreeimport timeimport requestsfrom multiprocessing.pool import ThreadPool #线程池import xlwtclass Visit(): #访问代理ip def __init__(self): 阅读全文

posted @ 2018-08-25 13:28 袁佳佳 阅读(172) 评论(0) 推荐(0)

2018年6月6日

爬去京东——智能音箱

摘要: import requestsimport lxmlimport reimport jsonfrom lxml import etreeimport urllib3urllib3.disable_warnings()import timeimport xlwtimport demjsonclass 阅读全文

posted @ 2018-06-06 15:01 袁佳佳 阅读(122) 评论(0) 推荐(0)

2018年5月21日

滑动验证码

摘要: import reimport timefrom io import BytesIO import requestsfrom PIL import Imagefrom selenium import webdriverfrom selenium.webdriver import ActionChai 阅读全文

posted @ 2018-05-21 09:40 袁佳佳 阅读(551) 评论(0) 推荐(0)

天气爬取的笔记

摘要: 1、http://www.nmc.cn/f/rest/real/57036?_=1525850063564 #这个是搜索西安, 然后在返回的页面里面找到 天气预报的url 1、1525850063564 是随机数, 不用管。寻找57036 2、搜索 57036 找到包含很多id(57036)这样的网 阅读全文

posted @ 2018-05-21 09:39 袁佳佳 阅读(782) 评论(0) 推荐(0)

2018年5月15日

selenium_模拟登陆

摘要: import timefrom selenium import webdriverfrom selenium.webdriver.support.wait import WebDriverWait #事件循环, 不断的去检测from selenium.webdriver.support import 阅读全文

posted @ 2018-05-15 15:32 袁佳佳 阅读(283) 评论(1) 推荐(0)

2011年到2017年11月的 2345_历史天气爬虫

摘要: # -*- coding:utf-8 -*-import requestsimport timeimport jsonimport reimport demjsonimport xlwtfrom multiprocessing.pool import ThreadPool #线程池class His 阅读全文

posted @ 2018-05-15 09:51 袁佳佳 阅读(198) 评论(0) 推荐(0)

2345_历史天气爬去_ 2017到昨天

摘要: # -*- coding:utf-8 -*-import requestsimport timeimport jsonimport reimport demjsonimport xlwtfrom multiprocessing.pool import ThreadPool #线程池class His 阅读全文

posted @ 2018-05-15 09:50 袁佳佳 阅读(2510) 评论(0) 推荐(0)

2018年5月14日

给Excel写东西

摘要: import xlwt#创建一个xlwt对象。f = xlwt.Workbook(encoding='utf-8')#创建一个单表 sheet1, 在单表里面插入sheet1 = f.add_sheet(u'sheet1',cell_overwrite_ok= True)li = [1,2,3,4, 阅读全文

posted @ 2018-05-14 10:24 袁佳佳 阅读(128) 评论(0) 推荐(0)

上一页 1 ··· 9 10 11 12 13 14 15 下一页

导航