adspower
adspower copied to clipboard
default domain issue
The issue is hardcoded AdsPower _api_url attribute in _BaseHTTPClient.
I have AdsPower and python app on my host. Python app is working from docker container. So when I want to use AdsPower API in any code snippet of my app I have to use url not local.adspower.net but host.docker.internal. e.g. host.docker.internal:50325/status
response = requests.get(
url="http://host.docker.internal:50325/status",
headers={"Authorization": "Bearer xxx"}
) # this actually returns 200 status code
but
profile = (await Profile.query(id_=id))[0] # raises adspower.exceptions.UnavailableAPIError
So, dear developers add a possibility for users to manually specify the api url.
Ok, I will add url parameter