8 lines
320 B
Python
Raw Normal View History

2018-10-10 01:06:59 +05:30
from SimpleWebpageParser import SimpleWebpageParser
swp = SimpleWebpageParser("https://hacktoberfest.digitalocean.com/")
html = swp.getHTML()
print html.find_all('a')
## the html returned is an object of type BeatifulSoup, you can parse using BeautifulSoup syntax
## refer to its documentation for more functionalities