网页内容抽取

2024-06-02 09:10:15 发布

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

网页代码:

"caption": "~ I hate the idea of limitations ~\n

提取注释的我的代码:

caption = findall('"caption": "~(.+) ~\n ',web_page_contents)

执行时,我得到:

[]

我想从网页代码中获取报价


Tags: ofthe代码web网页contentspage报价