上一页 1 ··· 10 11 12 13 14
  2022年3月31日
摘要: 1.reques高级: 例子: 1.17k小说网: #我们利用session去请求(是一连串的请求,过程中不会cookie丢失import requests# 会话session =requests.session()data ={"loginName": "18835556819", "passw 阅读全文
posted @ 2022-03-31 11:50 Steam残酷 阅读(90) 评论(0) 推荐(0)
摘要: 三.爬虫开始: ….第三方类库: request模块 安装: pip install request 例子: (1)你喜欢的明星 import requestsquery = input("输入一个你喜欢的明星")url = 'http://www.baidu.com/s?word={query}' 阅读全文
posted @ 2022-03-31 11:49 Steam残酷 阅读(104) 评论(0) 推荐(0)
摘要: 二.爬虫的开端: 爬虫的一些小的例子:(5) 利用python的原始的库写爬虫: urlopen() from urllib import requestresp = request.urlopen('http://www.baidu.com')print(read()) 2.urlretrieve 阅读全文
posted @ 2022-03-31 11:47 Steam残酷 阅读(35) 评论(0) 推荐(0)
摘要: 一.爬虫的小知识: 我学的爬虫课有: 樵夫:樵夫 12800:12800 用到的正则的练习的网站:正则表达式练习 爬虫是什么? 网络爬虫(Web Spider)又称“网络蜘蛛”或“网络机器人”,它是一种按照一定规则从 Internet 中获取网页内容的程序。 原理: 爬虫程序之所以可以抓取数据,是因 阅读全文
posted @ 2022-03-31 11:45 Steam残酷 阅读(109) 评论(0) 推荐(1)
上一页 1 ··· 10 11 12 13 14