mortada/fredapi

add proxy settings

dmpe opened this issue · 4 comments

dmpe commented

Hi,
it would have been really nice if you could add to Fred() call also proxy settings.
Thanks

agree. it is easy to realize but useful

Hi,
as an alternative you can use package pystlouisfed, where it is possible to set parameters from requests.request

from pystlouisfed import FRED

fred = FRED(
    api_key='abcdefghijklmnopqrstuvwxyz123456',
    request_params={
        'proxies': {
            "http": 'http://127.0.0.1:3128',
            "https": 'http://127.0.0.1:3128'
        }
    })

df = fred.series_observations(series_id='GDP')
milmr commented

Opened a PR#65 for this issue.

Could this be pulled, the code looks good? Thanks