文章分类 - 爬虫
摘要:参考博客 https://blog.csdn.net/u012082590/article/details/89024889 import requests import re from fontTools.ttLib import TTFont # <span class="MZYjnXxB">&
阅读全文
摘要:1. 准备工作 在开始之前,请确保已经正确安装好了requests库。如果没有安装,可以参考1.2.1节安装。 2. 实例引入 urllib库中的urlopen()方法实际上是以GET方式请求网页,而requests中相应的方法就是get()方法,是不是感觉表达更明确一些?下面通过实例来看一下: 1
阅读全文
摘要:https://www.jianshu.com/p/404e4ac156a6import scrapy from scrapy.http import Request,FormRequest import re class PachSpider(scrapy.Spider): #定义爬虫类,必须继承
阅读全文