上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 31 下一页
摘要: 三种方法足够了,如果你有其他方法也可以留言 阅读全文
posted @ 2019-01-11 21:02 青春叛逆者 阅读(870) 评论(0) 推荐(0) 编辑
摘要: import json import re from itertools import chain import requests from requests import RequestException def get_page_index(url): try: response=requests.get(url) # print(respons... 阅读全文
posted @ 2019-01-11 20:51 青春叛逆者 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2019-01-11 16:50 青春叛逆者 阅读(93) 评论(0) 推荐(0) 编辑
摘要: 在运行上述代码时候,报了一个错误 解决办法: 这样就可以解决了,如果你想想完美输出上面代码结果还需要下载一个东西,如果你的电脑自动下载那估计没问题,如果手动下载把文件放入用户目录下面的 阅读全文
posted @ 2019-01-11 11:18 青春叛逆者 阅读(1743) 评论(0) 推荐(0) 编辑
摘要: mysql 与mongodb 本质之间最基本的差别是什么? 怎么查看mongodb正在使用的链接? 分析器在mongodb中的作用是什么? 阅读全文
posted @ 2019-01-11 08:46 青春叛逆者 阅读(646) 评论(0) 推荐(0) 编辑
摘要: #encoding: utf-8 from selenium import webdriver from selenium.webdriver.support.ui import Select,WebDriverWait from selenium.webdriver.common.by import By from selenium.webdriver.support import expe... 阅读全文
posted @ 2019-01-10 22:45 青春叛逆者 阅读(412) 评论(0) 推荐(0) 编辑
摘要: import json import re from multiprocessing.pool import Pool import requests from requests import RequestException def get_one_page(url): try: response =requests.get(url) # prin... 阅读全文
posted @ 2019-01-10 22:36 青春叛逆者 阅读(224) 评论(0) 推荐(0) 编辑
摘要: import json import re from multiprocessing.pool import Pool import requests from requests import RequestException def get_one_page(url): try: response =requests.get(url) if res... 阅读全文
posted @ 2019-01-10 22:35 青春叛逆者 阅读(434) 评论(0) 推荐(0) 编辑
摘要: url: 就是需要请求,并进行下一步处理的url callback: 指定该请求返回的Response,由那个函数来处理。 method: 请求一般不需要指定,默认GET方法,可设置为"GET", "POST", "PUT"等,且保证字符串大写 headers: 请求时,包含的头文件。一般不需要。内容一般如下: # 自己写过爬虫的肯定知道 Host: med... 阅读全文
posted @ 2019-01-09 22:54 青春叛逆者 阅读(279) 评论(0) 推荐(0) 编辑
摘要: #在python console 里面进行测试a=[1,2,3,4,5,6] b=[0.13,0.78,0.6,0.92,0.66,0.33] zip(a,b) Out[4]: for i in zip(a,b): print(i) (1, 0.13) (2, 0.78) (3, 0.6) (4, 0.92) (5, 0.66) (6, 0.33) for i in ra... 阅读全文
posted @ 2019-01-09 10:39 青春叛逆者 阅读(220) 评论(0) 推荐(0) 编辑
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 31 下一页