- HTML vs DOM, Example 1
- HTML vs DOM, Example 2
- rvest package for parsing HTML
Use the elements tab to explore a webpage's DOM.
- Simple example
- Grab text from sites that have copying disabled: NY Times
- Find and download a hidden video file: Imgur
Use the network tab to find the data used in these webpages.
Data: Wall Street Journal / code: web-inspector-data.r
- See if you can you can find the data to recreate their sunlight map yourself. The steps for doing this have now been added to web-inspector-data.r
Data: Washington Post / code: web-inspector-data.r
- Sometimes data will be hidden in .js files: county-level real estate values
- Used as the data source for the map below