上一页 1 ··· 6 7 8 9 10 11 下一页
摘要: 爬虫14天小练手这是数据截图: 只需要找到网站中传输的json数据流就可以获取该网站的数据,所以打开谷歌浏览器,耐心查看网络传输的包即可。例如: 如果没有刷新一下网页,即可出现传输的数据流。 接下来我们就可以完成上头所要的数据了。 阅读全文
posted @ 2019-09-22 21:02 King~~~ 阅读(356) 评论(0) 推荐(0) 编辑
摘要: Scrapy1.7.3文档 webdriver文档 webdriver下载地址 Chrom各版本下载地址 Firefox浏览器各个版本下载地址 geckodriver驱动下载: http://npm.taobao.org/mirrors/geckodriver/ 火狐浏览器机器驱动对应关系 词云1. 阅读全文
posted @ 2019-09-18 16:31 King~~~ 阅读(216) 评论(0) 推荐(0) 编辑
摘要: import requestsfrom selenium import webdriverimport timedef grasp(urlT): driver = webdriver.Chrome(r'C:\Program Files (x86)\Google\Chrome\Application\ 阅读全文
posted @ 2019-09-16 16:33 King~~~ 阅读(338) 评论(0) 推荐(0) 编辑
摘要: from selenium import webdriverfrom selenium.webdriver import ActionChainsimport timedriver = webdriver.Chrome(r'C:\Program Files (x86)\Google\Chrome\A 阅读全文
posted @ 2019-09-15 00:28 King~~~ 阅读(643) 评论(0) 推荐(0) 编辑
摘要: import requests from selenium import webdriver import time def grasp(urlT): driver = webdriver.Chrome(r'C:\Program Files (x86)\Google\Chrome\Applicati 阅读全文
posted @ 2019-09-15 00:20 King~~~ 阅读(871) 评论(0) 推荐(0) 编辑
摘要: 这只是简单练习 小白一枚,AI训练方式还未学习,后面会持续出更 继续努力 阅读全文
posted @ 2019-09-10 22:02 King~~~ 阅读(1640) 评论(0) 推荐(0) 编辑
摘要: class Grasp: def __init__(self): pass def getName(self): for i in range(0,10): self.url = f"https://movie.douban.com/top250?start={25*i}&filter=" self.html =... 阅读全文
posted @ 2019-09-10 20:57 King~~~ 阅读(256) 评论(0) 推荐(0) 编辑
摘要: 1 import xlrd,xlwt,pickle,time,datetime 2 book = xlrd.open_workbook("练习.xlsx") 3 sheet1 = book.sheet_by_index(0) 4 rownum=sheet1.nrows 5 data=[] 6 for i in range(4, rownum): 7 if i >= 76: ... 阅读全文
posted @ 2019-09-09 08:48 King~~~ 阅读(512) 评论(0) 推荐(0) 编辑
摘要: ## 字典的所有方法- 内置方法 - 1 cmp(dict1, dict2) 比较两个字典元素。 - 2 len(dict) 计算字典元素个数,即键的总数。 - 3 str(dict) 输出字典可打印的字符串表示。 - 4 type(variable) 返回输入的变量类型,如果变量是字典就返回字典类 阅读全文
posted @ 2019-09-03 18:30 King~~~ 阅读(499) 评论(0) 推荐(0) 编辑
摘要: 列表list: arr = [] 1.可以定义空列表 2.可以定义只有一个元素的列表 3.元素可以是任意类型 arr.append('abc')末尾添加 arr.insert(index,objec)指定位置添加 arr.remove(objec)删除指定元素 arr.pop(index)删除指定位 阅读全文
posted @ 2019-09-02 13:30 King~~~ 阅读(1767) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 下一页