propublica / upton

A batteries-included framework for easy web-scraping. Just add CSS! (Or do more.)
MIT License
1.62k stars 113 forks source link

Deprecating :selector_method parameter #11

Closed dannguyen closed 11 years ago

dannguyen commented 11 years ago

The Nokogiri API allows for the client to use :search, which will perform either a CSS or XPath node traversal depending on the syntax of the string. For now, I've made the references to :selector_method innocuous...whether the user specifies :css or :xpath, only :search is invoked. On the next iteration, :selector_method should be removed as the third argument.

jeremybmerrill commented 11 years ago

Nice find, Dan! Thanks! Merged.