I need such functions in python:
-check external links count on site pages.
-check if some link is present on gi开发者_JS百科ven page or not.
Does anybody know good solutions/libs for this task? I think i should use BeautifulSoup here.., may be something more lib can help?
You should be able to use urllib2 module to fetch the page, use beautifulsoup to parse the page and extract the links, store it up in list and match them to check for some existing link. There are number of questions on BeautifulSoup on SO itself.
精彩评论