Awesome-Python-Scripts/SimpleWebpageParser/webpage_parser.py

8 lines
320 B
Python
Raw Normal View History

2018-10-09 19:36:59 +00:00
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