Getting NONE in the output

已查看 22 次
跳至第一个未读帖子

Isildur

未读,
2022年11月16日 07:29:012022/11/16
收件人 beautifulsoup
Hello there, I am trying to get the images url/src from the <ul> tag, but it is giving me nothing in the output.
I would really appreciate your help. Thanks.

As you can see I wrote this:
imageHelper = soup.find("ul", class_="css-rz9hyy")
and tried to print it, but getting None.scraping.PNGscraping1.PNG

Isaac Muse

未读,
2022年11月16日 14:43:272022/11/16
收件人 beautifulsoup
It's likely that the element cannot be found. It is possible that some elements and classes are created/assigned with JS after the document loads. If this is true, then when you download the HTML, the element you are looking for may not be found. Unfortunately, I do not have enough information to answer if that is the case or not.
回复全部
回复作者
转发
0 个新帖子