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