[Edu-sig] a simple api for json data

Carl Karsten carl at nextdayvideo.com
Sun Jun 18 12:23:13 EDT 2017


As soon as http://thecatapi.com supports json it will be my goto site for
handy json and that day is coming soon.  maybe sooner if you vote now.

http://www.websitegoodies.com/pollresults.php?id=76423

On Sun, Jun 18, 2017 at 10:28 AM, kirby urner <kirby.urner at gmail.com> wrote:

> [1] also a missing footnote from my previous post:
> https://github.com/4dsolutions/Python5/blob/master/py_async_get_chemicals.
> py
>
> Feel free to hit against my $5/mo Hacker account with pythonAnywhere for
> teaching your students how to go against an API with urllib or requests or
> whatever e.g.:
>
> url = "http://thekirbster.pythonanywhere.com/api/elements?elem=Fe"
>
> with urllib.request.urlopen(url) as response:
>     html = response.read()
>
>
> html
> Out[11]: b'[26, "Fe", "Iron", 55.8452, "transition metal", 1493462392,
> "KTU"]'
>
> The API itself is pretty simple and documented on the home page:
> http://thekirbster.pythonanywhere.com
>
> Feel free to ask me questions on this thread on edu-sig. I'm not selling
> you a product, just yakking about a free service.  The complete source code
> for this tiny Flask application is also visible on Github.  I use this for
> teaching my courses.
>
> Kirby
>
>
> _______________________________________________
> Edu-sig mailing list
> Edu-sig at python.org
> https://mail.python.org/mailman/listinfo/edu-sig
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/edu-sig/attachments/20170618/169608c8/attachment.html>


More information about the Edu-sig mailing list