From 5306b4ef0f11e48070f1f117c20bbb13c8860f8f Mon Sep 17 00:00:00 2001 From: hnu202111020311 Date: Wed, 29 Dec 2021 16:40:20 +0800 Subject: [PATCH] ADD file via upload --- 网络爬虫爬取热门动画电影.py | 42 +++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 网络爬虫爬取热门动画电影.py diff --git a/网络爬虫爬取热门动画电影.py b/网络爬虫爬取热门动画电影.py new file mode 100644 index 0000000..e5e3501 --- /dev/null +++ b/网络爬虫爬取热门动画电影.py @@ -0,0 +1,42 @@ +import re +import requests +import pandas as pd +import matplotlib.pyplot as mp +mp.rcParams['font.sans-serif'] = ['SimHei'] +c=[] +for n in ['','_2','_3','_4'] : + a='http://www.manmankan.com/dy2013/dianying/donghua/index{}.shtml'.format(n) + A={'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/96.0.4664.110 Safari/537.36 Edg/96.0.1054.62'} + b=requests.get(a,headers=A) + b.encoding = 'utf-8' + obj=re.compile('
(?P.*?)(?P.*?)(?P.*?)(?P