zedtux / brewformulas.org

A website to search and discover formulas from Homebrew for Mac
brewformulas.org
555 stars 16 forks source link

JSON API for formula infos #9

Closed mralexgray closed 10 years ago

mralexgray commented 10 years ago

Given route...

curl http://brewformulas.org/json/a52dec

return JSON like..

{
  "formula": "a52dec",
  "description": "a52dec is a test program for liba52. It decodes ATSC A/52 streams, and also includes a demultiplexer for mpeg-1 and mpeg-2 program streams.",
  "reference": "Extracted automatically from A52dec homepage",
  "homepage": "http://liba52.sourceforge.net/",
  "version": "",
  "dependencies": [
  ],
  "dependents": [
    "GstPluginsUgly",
    "GPac"
  ]
}

I'd put together a scraper... but the HTML output is pretty busy.. and it'd be nicer if the info came straight from the "official" backend. Who knows... maybe with a solid API this could even be forked into homebrew's functionality...

Thoughts?

zedtux commented 10 years ago

Definitely this feature will be implemented !

We could even think about a merge request/pull request in https://github.com/Homebrew/homebrew in order to query this API and provides details, especially the description.

Thank you for having opened this issue.

zedtux commented 10 years ago

@mralexgray what about the change URL to http://brewformulas.org/a52dec.json ?

zedtux commented 10 years ago

@mralexgray you can check at http://brewformulas.org/A52dec.json.