mirror of
https://github.com/hastagAB/Awesome-Python-Scripts.git
synced 2024-11-23 20:11:07 +00:00
8 lines
320 B
Python
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 |