Web Scraping in Python
Thomas Laetsch
Data Scientist, NYU

xpath = '/html/body'
xpath = '/html[1]/body[1]'
xpath = '/html/body/p'

xpath = '/html/body/div/p'

xpath = '/html/body/div/p[2]'

xpath = '//p'

xpath = '//p[1]'

xpath = '/html/body/*'

Web Scraping in Python