BeautifulSoup: object of type 'Response' has no len()

前端 未结 7 1465
深忆病人
深忆病人 2020-12-05 09:55

Issue: when I try to execute the script, BeautifulSoup(html, ...) gives the error message \"TypeError: object of type \'Response\' has no len(). I tried passing

相关标签:
7条回答
  • 2020-12-05 10:56

    Try to pass the HTML text directly

    soup = BeautifulSoup(html.text)
    
    0 讨论(0)
提交回复
热议问题