上一页 1 2 3 4 5 6 ··· 16 下一页
摘要: VLOOKUP(lookup_value,table_array,col_index_num,range_lookup) Vlookup函数的作用为在表格的首列查找指定的数据,并返回指定的数据所在行中的指定列处的数据。 共包含四个参数。 lookup_valu... 阅读全文
posted @ 2021-04-14 15:12 挖掘机斯基 阅读(1475) 评论(0) 推荐(0) 编辑
摘要: 以CSDN首页为例,代码如下: >>> import requests>>> r=requests.get("https://www.csdn.net")>>> demo=r.text>>> from bs4 import BeautifulSoup>>> s... 阅读全文
posted @ 2021-04-14 14:45 挖掘机斯基 阅读(376) 评论(0) 推荐(0) 编辑
摘要: 第一步:搜索标签 第二步:提取标签中href的内容 以CSDN首页为例,代码如下: >>> import requests>>> r=requests.get("https://www.csdn.net")>>> demo=r.text>>> from bs4... 阅读全文
posted @ 2021-04-14 14:30 挖掘机斯基 阅读(852) 评论(0) 推荐(0) 编辑
摘要: 一、单项选择题(从每题给出的四个选项中,选出最符合题目要求的一个答案,并将其对应的大写字母填在题前的括号内。共75分。第1~35题,... 阅读全文
posted @ 2021-04-13 21:05 挖掘机斯基 阅读(2444) 评论(0) 推荐(0) 编辑
摘要: >>> import requests>>> r=requests.get("https://python123.io/ws/demo.html")>>> r.text'This is a python demo page\r\n\r\nThe demo py... 阅读全文
posted @ 2021-04-12 20:52 挖掘机斯基 阅读(77) 评论(0) 推荐(0) 编辑
摘要: 1.以管理员身份运行cmd 2.输入'pip install beautifulsoup4'后回车 阅读全文
posted @ 2021-04-12 20:46 挖掘机斯基 阅读(130) 评论(0) 推荐(0) 编辑
摘要: >>> import requests>>> path="d:/del.jpg">>> url="https://img-blog.csdnimg.cn/20210317155124696.png">>> r=requests.get(url)>>> r.st... 阅读全文
posted @ 2021-04-12 19:48 挖掘机斯基 阅读(60) 评论(0) 推荐(0) 编辑
摘要: 按关键词搜索CSDN网页 >>> import requests>>> kv={'q':'python'}>>> r=requests.get("http://so.csdn.net/so/search/all",params=kv)>>> r.status_... 阅读全文
posted @ 2021-04-09 16:56 挖掘机斯基 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 先import进来 以抓取csdn首页为例,代码如下: 阅读全文
posted @ 2021-04-07 21:34 挖掘机斯基 阅读(45) 评论(0) 推荐(0) 编辑
摘要: Robots协议: Robots Exclusion Standard(网络爬虫排除标准) 作用: 网站告知可以爬取的页面,不能爬取的页面 位置: 网站根目录下的robots.txt文件中 查看: 在地址栏中输入/robo... 阅读全文
posted @ 2021-04-07 20:15 挖掘机斯基 阅读(582) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 16 下一页