tags:

views:

17

answers:

1

I need such functions in python:

-check external links count on site pages.

-check if some link is present on given 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?

A: 

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.

pyfunc