Skip to content

Commit cc528bd

Browse files
committed
修复了小bug
1 parent 5545021 commit cc528bd

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎B站弹幕、评论爬虫.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ def getAidAndCid(self):
1919
r.encoding='utf-8'
2020
try:
2121

22-
self.cid=re.findall(cidRegx, r.text)[]
22+
self.cid=re.findall(cidRegx, r.text)[0]
2323
self.aid=re.findall(aidRegx, r.text)[int(page)-1]
2424
except:
2525
print('视频序号输入有误,请保证序号在1到最大值之间!')

0 commit comments

Comments
 (0)