Awesome-Python-Scripts/SimpleWebpageParser/webpage_parser.py
2018-10-10 01:06:59 +05:30

8 lines
320 B
Python

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