Python + BeautifulSoup: How to get ‘href’ attribute of ‘a’ element?

后端 未结 4 1222
梦如初夏
梦如初夏 2020-12-16 15:21

I have the following:

  html =
  \'\'\'
      
4条回答
  •  余生分开走
    2020-12-16 16:15

    1. First of all, use a different text editor that doesn't use curly quotes.

    2. Second, remove the text=True flag from the soup.find_all

提交回复
热议问题