Python弹幕爬虫B站怎么办

为什么一直出现Process finished with exit code 0?到底怎么才能进行爬虫啊?

img

你需要调用 get_danmu(url)函数,在代码最后 一行写上它,试一试。

Process finished with exit code 0,没有报错,这个是程序正常执行完毕的意思,Process finished with exit code -1或者Process finished with exit code 1才是代码中断,没有执行下去,你没有调用函数,所以没有显示,要先调用函数,有用点一下采纳