随笔分类 -  python爬虫

摘要:一、给定URL, 提取小说文本 import re import requests from bs4 import BeautifulSoup if __name__ == '__main__': response = requests.get('http://www.jinyongwang.com 阅读全文
posted @ 2020-12-04 10:09 cherish__lin 阅读(473) 评论(0) 推荐(0)
摘要:一、给定url,直接下载到本地 import re import requests from bs4 import BeautifulSoup def get_gif(url, a): response = requests.get(url) # 自己电脑上的文件夹路径,默认命名 a.gif wit 阅读全文
posted @ 2020-12-02 15:08 cherish__lin 阅读(205) 评论(0) 推荐(0)