import requests
from bs4 import BeautifulSoup
import time
import pandas as pd
import numpy as np
headers={
'User-Agent':'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.190 Safari/537.36'}
url='https://movie.douban.com/subject/34841067/comments?limit=20&status=P&sort=new_score'
html = requests.get(url,headers=headers)
data = html.text
soup = BeautifulSoup(data,'lxml')
names = soup.select('#comments > div > div.comment > h3 > span.comment-info > a')
pingjis = soup.select('#comments > div > div.comment > h3 > span.comment-info'