建立webscraper,我已经瞄准了容器,但是找不到身份证

2024-09-18 22:15:53 发布

您现在位置:Python中文网/ 问答频道 /正文

嘿,我正在尝试用python中的bs4构建一个twitterweb scraper。 它的工作非常好,但我刚刚发现,我还需要刮我刮推的id

enter image description here

在我提交的html图片中,我可以用以下代码将容器“div”{“class”:“tweet”}作为目标:

enter image description here

我似乎无法获取检索“数据项id”的代码。有人知道如何得到它吗? 多谢了


Tags: 代码divid目标html图片scraper容器