def avinfo(self):
url = '%s&avinfo' % self.url
try:
req = requests.get(url, timeout=(2, 2))
except (ConnectTimeout, ReadTimeout):
return {}
if req.status_code == 200:
info = req.json()
return info.get('format', {})
return {}
评论列表
文章目录