fredapi icon indicating copy to clipboard operation
fredapi copied to clipboard

add proxy settings

Open dmpe opened this issue 5 years ago • 4 comments

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

dmpe avatar Feb 21 '20 12:02 dmpe

agree. it is easy to realize but useful

amandus1990 avatar Nov 05 '21 10:11 amandus1990

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')

TomasKoutek avatar Feb 09 '22 13:02 TomasKoutek

Opened a PR#65 for this issue.

milmr avatar Jul 13 '23 15:07 milmr

Could this be pulled, the code looks good? Thanks

Tvogel20 avatar Sep 07 '23 16:09 Tvogel20