import requests
resp = requests.get('https://www.bilibili.com/v/popular/rank/all')
text = resp.text
for i in range(0, len(text.split('</a> <!---->')) - 1):
title = text.split('</a> <!---->')[i].split('"title">')[-1]
playcounts = text.split('</span> <span class="data-box">')[i].split('</i>')[-1].strip()
comments = text.split('</span> <a target="_blank"')[i].split('</i>')[-1].strip()
points = text.split('<div class="pts"><div>')[i + 1].split('</div>')[0]
print('标题:' + title)
print('播放次数:' + playcounts)
print('弹幕数量:' + comments)
print('综合得分:' + points)
print('\n')