Web Scraping in Python
Thomas Laetsch
Data Scientist, NYU
xpath = '/html/body/div[2]'
Simple XPath:
/ used to move forward one generation.
xpath = '/html/body/div[2]'
table elements within the entire HTML code:xpath = '//table'
table elements which are descendants of the 2nd div child of the body element:xpath = '/html/body/div[2]//table`
Web Scraping in Python