Skip to content

Instantly share code, notes, and snippets.

@fhightower
Created June 9, 2017 13:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fhightower/b57011d94e90873815e19ffe5fd4dfb9 to your computer and use it in GitHub Desktop.
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
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