I cant find a specific comment in python, in example the <!-- why -->.
My main reason is to find all the links inside 2 specific comments. Something like a parser.
I tried this with Beautifulsoup :
import urllib
over=urlopen("www.gamespot.com").read()
soup = BeautifulSoup(over)
print soup.find("<!--why-->")
But it doesn't work.
I think I might have to use regex and not Beautifulsoup.
Please help.
EXAMPLE: we have HTML Code like this
<!--why-->
www.godaddy.com
<p> nice one</p>
www.wwf.com
<!-- why not-->
EDIT: Between the 2 comments, other stuff, like tags, might exist.
And I need to store all the links .