1. #1
    Stef@n
    Stef@n's Avatar Become A Pro!
    Join Date: 04-01-11
    Posts: 9
    Betpoints: 3624

    Pinnacle API issue

    I'm having problems trying to access some parts of Pinnacle API using Python 2.7.
    While most of the links do work, every time I try to get ALL soccer odds at once it returns nothing and the
    execution freezes. Here's my code:

    import requests
    r = requests.get("https://api.pinnacle.com/v1/fixtures?sportid=29", auth=('username', 'password'))
    print r.content

    I guess it has something to do with amount of data because I'm able to get specific leagues and the sports with fewer games. The following examples work:

    r = requests.get("https://api.pinnacle.com/v1/fixtures?sportid=4", auth=('username', 'password')) (Basketball)
    r = requests.get("https://api.pinnacle.com/v1/fixtures?sportid=29&leagueids=1728,1798, 1817", auth=('username', 'password'))


    Any idea what might be causing this problem?

  2. #2
    MaddyMax
    MaddyMax's Avatar Become A Pro!
    Join Date: 02-14-17
    Posts: 790
    Betpoints: 174

    Looking forward to inputs, I am experiencing same problem.

  3. #3
    Stef@n
    Stef@n's Avatar Become A Pro!
    Join Date: 04-01-11
    Posts: 9
    Betpoints: 3624

    Solved it by running the code in Sublime Text instead of Python Idle

Top