python学习笔记:python爬取github图片
总体思路
关键:每张图片有一个地址,通过找规律构建要爬取图片的地址
代码会自动将爬取到的图片保存到文件夹下:结果如下图
import requests
import json
class ImageSpider():
def __init__(self):
self.headers = {'User-Agent':"Mozilla/5.0 (Linux; Androi...
原创
2019-03-31 14:41:06 ·
775 阅读 ·
0 评论