李浅

导航

2019年3月27日 #

if __name__ == '__main__':用法

摘要: 这个博主写的很好,已经验证过了。https://blog.csdn.net/yjk13703623757/article/details/77918633 阅读全文

posted @ 2019-03-27 18:08 李浅 阅读(191) 评论(0) 推荐(0) 编辑

爬取猫眼电影100榜单 代码

摘要: 1 import requests 2 import re, json 3 4 5 # 请求网页,返回响应体 6 def get_one_page(url): 7 headers = { 8 'User-Agent': 'Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, lik... 阅读全文

posted @ 2019-03-27 15:28 李浅 阅读(351) 评论(0) 推荐(0) 编辑