10. HTTP Status Codes
200 level - Success on client and server
300 level - Redirection - client is supposed to do
something else
400 level - Client error
500 level - Server error
12. CSS & XPath Selectors
Way to target data inside a document
CSS
“head title”
"div#body * span.name"
XPath
/head/title
//div[@id='body']/*/span[@class='name']
13. Selecting XPath Nodes
title selects all nodes in the doc
/html selects from the root node
//title selects all nodes below current node
[@src] selects nodes with an attribute and
[@class=’name’] optionally a value
14. Browser Tools
Firefox
QuarkRuby’s version of Firebug
click to get CSS & XPath Selectors
Firefinder extension to Firebug
query doc with CSS Selectors
Civil Law, Contract Law & Tort Law
Copyright is civil law with a lot of case law & precedent
TOS, AUP, etc. are contract law
Tresspass to chattel tort law - have to ‘damage’
Dex knows: look at TOU for automated scraping, robots.txt and the sitemap