The Fetcher

What is this?

I wanted to be able to include some different stats from different services on my static html website, so I built this scraper of sorts. I hope to make it better overtime, maybe even get some other people using it.

Code Examples

All the code examples on this page are editable and executable as coffeescript.

Usage

Visit http://:service.fetcher.nathanherald.com/:username

Every endpoint supports jsonp, just append a callback params like so:

window.parseDribbble = (data) ->
  alert "Visit my dribbble page at #{data.profile_url}. I have #{data.projects} projects."

script = document.createElement('script')
script.async = true
script.src = "http://dribbble.fetcher.nathanherald.com/myobie?callback=parseDribbble"
document.body.appendChild script

Just FYI:

window.append_script_with_src = (src) ->
  script = document.createElement('script')
  script.async = true
  script.src = src
  document.body.appendChild script

Services Supported

Source & Support

Fork me on GitHub.