爬取猫眼电影排名前一百的电影
验证问题不知道怎么解决,隔段时间要重新输一次链接‘
# -*- coding: utf-8 -*-
"""
Created on Wed Dec 29 21:07:41 2021
@author: shiyu
"""
import requests
import re
#爬取电影名
def get(url):
try:
html=requests.get(url,headers=headers)
except:
print('error')
if html.text.find('验证')!=-