Created
June 9, 2017 13:45
-
-
Save fhightower/b57011d94e90873815e19ffe5fd4dfb9 to your computer and use it in GitHub Desktop.
Get a list of the trainings from: https://www.blackhat.com/us-17/training/index.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bs4 | |
import requests | |
r = requests.get("https://www.blackhat.com/us-17/training/index.html") | |
s = bs4.BeautifulSoup(r.text, 'lxml') | |
# find all <h2> elements (the headings that contain the headings for the trainings) | |
h2 = s.find_all('h2') | |
for h in h2: | |
print(h.text) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment