How to send GET requests via python over different IPs?











up vote
-1
down vote

favorite












I am currently trying to gather data from an exchange for deep learning. The issue is I need the data with a high resolution (second intervals), therefore I am creating a lot of GET requests for each currency. But I reach fast the limits of the API really.



I would like to know if there is a possibility to route the GET request over a public proxy server to claim to have a different IP-address to make as many requests as possible with a Raspberry PI.










share|improve this question




















  • 1




    You want us to help you circumvent the rate limit of an API?
    – Charles Landau
    Nov 11 at 3:19










  • I need to, else I won't be able to get the needed data
    – Synaps
    Nov 11 at 10:05















up vote
-1
down vote

favorite












I am currently trying to gather data from an exchange for deep learning. The issue is I need the data with a high resolution (second intervals), therefore I am creating a lot of GET requests for each currency. But I reach fast the limits of the API really.



I would like to know if there is a possibility to route the GET request over a public proxy server to claim to have a different IP-address to make as many requests as possible with a Raspberry PI.










share|improve this question




















  • 1




    You want us to help you circumvent the rate limit of an API?
    – Charles Landau
    Nov 11 at 3:19










  • I need to, else I won't be able to get the needed data
    – Synaps
    Nov 11 at 10:05













up vote
-1
down vote

favorite









up vote
-1
down vote

favorite











I am currently trying to gather data from an exchange for deep learning. The issue is I need the data with a high resolution (second intervals), therefore I am creating a lot of GET requests for each currency. But I reach fast the limits of the API really.



I would like to know if there is a possibility to route the GET request over a public proxy server to claim to have a different IP-address to make as many requests as possible with a Raspberry PI.










share|improve this question















I am currently trying to gather data from an exchange for deep learning. The issue is I need the data with a high resolution (second intervals), therefore I am creating a lot of GET requests for each currency. But I reach fast the limits of the API really.



I would like to know if there is a possibility to route the GET request over a public proxy server to claim to have a different IP-address to make as many requests as possible with a Raspberry PI.







python https proxy python-requests






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Nov 11 at 3:14









Santosh Kumar

10.2k134392




10.2k134392










asked Nov 11 at 3:09









Synaps

375




375








  • 1




    You want us to help you circumvent the rate limit of an API?
    – Charles Landau
    Nov 11 at 3:19










  • I need to, else I won't be able to get the needed data
    – Synaps
    Nov 11 at 10:05














  • 1




    You want us to help you circumvent the rate limit of an API?
    – Charles Landau
    Nov 11 at 3:19










  • I need to, else I won't be able to get the needed data
    – Synaps
    Nov 11 at 10:05








1




1




You want us to help you circumvent the rate limit of an API?
– Charles Landau
Nov 11 at 3:19




You want us to help you circumvent the rate limit of an API?
– Charles Landau
Nov 11 at 3:19












I need to, else I won't be able to get the needed data
– Synaps
Nov 11 at 10:05




I need to, else I won't be able to get the needed data
– Synaps
Nov 11 at 10:05












1 Answer
1






active

oldest

votes

















up vote
1
down vote



accepted










If you need to make a GET with different proxies/IP addresses...



Try proxy-requests. I am not sure if that's what you are asking, but it seems like maybe you reached your request limit to a your API endpoint. Some organizations limit the number of requests allowed from certain IP addresses.



Here's an example GET using python proxy requests so that your IP will be different:



pip3 install proxy-requests




from proxy_requests.proxy_requests import ProxyRequests
r = ProxyRequests("https://api.ipify.org")
r.get()


pypi



github



The module seems to use scraped proxies to make the request. I just tried quickly and it worked






share|improve this answer























    Your Answer






    StackExchange.ifUsing("editor", function () {
    StackExchange.using("externalEditor", function () {
    StackExchange.using("snippets", function () {
    StackExchange.snippets.init();
    });
    });
    }, "code-snippets");

    StackExchange.ready(function() {
    var channelOptions = {
    tags: "".split(" "),
    id: "1"
    };
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function() {
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled) {
    StackExchange.using("snippets", function() {
    createEditor();
    });
    }
    else {
    createEditor();
    }
    });

    function createEditor() {
    StackExchange.prepareEditor({
    heartbeatType: 'answer',
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader: {
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    },
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    });


    }
    });














     

    draft saved


    draft discarded


















    StackExchange.ready(
    function () {
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53245519%2fhow-to-send-get-requests-via-python-over-different-ips%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    1
    down vote



    accepted










    If you need to make a GET with different proxies/IP addresses...



    Try proxy-requests. I am not sure if that's what you are asking, but it seems like maybe you reached your request limit to a your API endpoint. Some organizations limit the number of requests allowed from certain IP addresses.



    Here's an example GET using python proxy requests so that your IP will be different:



    pip3 install proxy-requests




    from proxy_requests.proxy_requests import ProxyRequests
    r = ProxyRequests("https://api.ipify.org")
    r.get()


    pypi



    github



    The module seems to use scraped proxies to make the request. I just tried quickly and it worked






    share|improve this answer



























      up vote
      1
      down vote



      accepted










      If you need to make a GET with different proxies/IP addresses...



      Try proxy-requests. I am not sure if that's what you are asking, but it seems like maybe you reached your request limit to a your API endpoint. Some organizations limit the number of requests allowed from certain IP addresses.



      Here's an example GET using python proxy requests so that your IP will be different:



      pip3 install proxy-requests




      from proxy_requests.proxy_requests import ProxyRequests
      r = ProxyRequests("https://api.ipify.org")
      r.get()


      pypi



      github



      The module seems to use scraped proxies to make the request. I just tried quickly and it worked






      share|improve this answer

























        up vote
        1
        down vote



        accepted







        up vote
        1
        down vote



        accepted






        If you need to make a GET with different proxies/IP addresses...



        Try proxy-requests. I am not sure if that's what you are asking, but it seems like maybe you reached your request limit to a your API endpoint. Some organizations limit the number of requests allowed from certain IP addresses.



        Here's an example GET using python proxy requests so that your IP will be different:



        pip3 install proxy-requests




        from proxy_requests.proxy_requests import ProxyRequests
        r = ProxyRequests("https://api.ipify.org")
        r.get()


        pypi



        github



        The module seems to use scraped proxies to make the request. I just tried quickly and it worked






        share|improve this answer














        If you need to make a GET with different proxies/IP addresses...



        Try proxy-requests. I am not sure if that's what you are asking, but it seems like maybe you reached your request limit to a your API endpoint. Some organizations limit the number of requests allowed from certain IP addresses.



        Here's an example GET using python proxy requests so that your IP will be different:



        pip3 install proxy-requests




        from proxy_requests.proxy_requests import ProxyRequests
        r = ProxyRequests("https://api.ipify.org")
        r.get()


        pypi



        github



        The module seems to use scraped proxies to make the request. I just tried quickly and it worked







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited Nov 11 at 4:18

























        answered Nov 11 at 4:06









        sit_on_a_pan_otis

        977




        977






























             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53245519%2fhow-to-send-get-requests-via-python-over-different-ips%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Bressuire

            Vorschmack

            Quarantine