beautifulsoup爬虫使用-bs4

版权声明://若需转载,请各位大虾注明出处,小生在此有礼. https://blog.csdn.net/sos768/article/details/84329468

安装:pip install beautifulsoup4

  • 导入使用:
    • import bs4
    • from bs4 import BeautifulSoup
    • (soup = BeautifulSoup(response,“lxml”))类似用法

博客:https://cuiqingcai.com/1319.html

猜你喜欢

转载自blog.csdn.net/sos768/article/details/84329468