pandataPandora scraper Version0.0.1 AuthorWill Mayner <wmayner@gmail.com> (http://www.willmayner.com) Repositorygit - https://github.com/willmayner/pandata Dependencies
Statshttp://cloc.sourceforge.net v 1.55 T=0.5 s (8.0 files/s, 1040.0 lines/s) ------------------------------------------------------------------------------- Language files blank comment code ------------------------------------------------------------------------------- CoffeeScript 4 64 195 261 ------------------------------------------------------------------------------- SUM: 4 64 195 261 ------------------------------------------------------------------------------- | pandataThis is a Node.js port of Brian Ustas's Pandata module, originally written for Ruby. Node.js is asynchronous, making this module significantly faster than the original. Promises are used to handle sequential and parallel asynchronous requests. It is a library for downloading a user's Pandora.com data. This data includes:
Where possible, Pandora feeds are used (indicated by an asterisk above). Pandata can only access public Pandora profiles (profiles are public by default). Users can make their profiles private in Pandora's settings. UsageAs a libraryFirst, grab a Pandora webname from an email address, and create a new Pandata scraper for that user:
Next, use the API to scrape data. The API methods return promises for the data. Use them like so:
For more information on the API methods and the data returned, refer to the the API documentation. A note on promisesPandata's promises are generated by when, are thus thenable, and in full compliance with the Promises/A+ spec. This means they can be used with any promise implementation that is also compliant. See when's documentation for more information. As a command-line toolIf you need to use Pandata on the command line, then there's no need for a Node.js version, since the Ruby version provides CLI functionality. See the instructions on how to install the original Ruby version in the Pandata repository. CreditsThe original ruby version was written by Brian Ustas. |