[Python] python通过BeautifulSoup获取网页上的所有超级链接 →→→→→进入此内容的聊天室

来自 , 2020-11-14, 写在 Python, 查看 152 次.
URL http://www.code666.cn/view/7467fc45
  1. from BeautifulSoup import BeautifulSoup
  2. import urllib2
  3.  
  4. url = urllib2.urlopen("http://www.sharejs.com")
  5. content = url.read()
  6. soup = BeautifulSoup(content)
  7. links = soup.findAll("a")

回复 "python通过BeautifulSoup获取网页上的所有超级链接"

这儿你可以回复上面这条便签

captcha