Forums

Has anyone tried betfairlightweight with pythonanywhere?

betfairlightweight is a python wrapper for Betfair API-NG (with streaming):

https://github.com/liampauling/betfair

I've created a test python script after cloning the above repo.

But first in order to connect to the Betfair API, "you will need an App Key, SSL Certificates and a username/password."

What jurisdiction should this app key be based in? I'm based in Denmark, and I've tried my personal app key, user name and password in my pythonanywhere test script and it doesn't work - Response [403] is returned. So I think I need to somehow setup a new appkey, etc. from pythonanywhere.

Requests going from your PythonAnywhere account are going from servers in Germany (Frankfurt), so if the service is checking geoip, you probably need to create new credentials for the PA account.

Ok, many thanks for your reply.

Cheers,

G.