[Tutor] Help with running an API

Anish Tambe anish.tambe.lists at gmail.com
Sun Oct 26 06:31:28 CET 2014


The usage of the api as documented here - https://github.com/zachwill/fred
- suggests :

>>> import fred

# Save your FRED API key.
>>> fred.key('my_fred_api_key')

# Interact with economic data categories.
>>> fred.category()
...

Cheers,
Anish Tambe
On 26 Oct 2014 00:23, "Joel Goldstick" <joel.goldstick at gmail.com> wrote:

> On Sat, Oct 25, 2014 at 12:08 PM, Mark Meanwell <mmeanwell at gmail.com>
> wrote:
> > Hi Folks - new to python and trying to run an API. Running version
> 2.7.3. on
> > Windows 7 machine.
> >
> >  Here is the scenario for the given API (FRED API in this case):
> >
> > easy_install Fred from C:\ - this installs to C:\site packages
> >
> > then I fire up the python shell and run file created for fred api:
> >
> > from fredapi import Fred
> > fred = Fred(api_key='my api key')
> > data = fred.get_series('SP500')
> >
> > keep getting below error message:
> > ImportError: cannot import name Fred
> >
> > thanks for any suggestions!
>
> I'm not familiar with FRED, but a quick look on stackoverflow used the
> lowercase name to import
>
> >
> >
> > _______________________________________________
> > Tutor maillist  -  Tutor at python.org
> > To unsubscribe or change subscription options:
> > https://mail.python.org/mailman/listinfo/tutor
> >
>
>
>
> --
> Joel Goldstick
> http://joelgoldstick.com
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> https://mail.python.org/mailman/listinfo/tutor
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20141026/e5ff8ab5/attachment.html>


More information about the Tutor mailing list