[Python] SMS-Activate.ru API error

DunderMannen

Elite Member
Jr. VIP
Sep 11, 2019
2,089
1,959
Anyone worked with SMS-activate.ru's API?

If so, please help me out why I get this error constantly;
1601309301583.png


Python:
getNumber = requests.get('https://sms-activate.ru/stubs/handler_api.php?api_key=$XXX&action=getNumber&service=$XX', headers=headers)
    if getNumber.status_code == 200:
        # A bunch of shit up here #
        
        requests.post('https://sms-activate.ru/stubs/handler_api.php?api_key=$XXX&action=setStatus&status=$1&id=${}'.format(id), headers=headers)
        while True:
            pvCodeRequest = requests.get('https://sms-activate.ru/stubs/handler_api.php?api_key=$XXX&action=getStatus&id=${}'.format(id), headers=headers)
            pvCode = pvCodeRequest.content
            pvArr = pvCode.decode().split(':')
            print(pvArr)
            # THIS IS THE ERROR, IT KEEPS GIVING BAD_STATUS #
            if "STATUS_OK" in pvArr:
                print("PV: " + pvArr)
                driver.find_element_by_name('verfication_code').send_keys("3")
                break
            else:
                time.sleep(5)
                continue
 
Back
Top
AdBlock Detected

We get it, advertisements are annoying!

Sure, ad-blocking software does a great job at blocking ads, but it also blocks useful features and essential functions on BlackHatWorld and other forums. These functions are unrelated to ads, such as internal links and images. For the best site experience please disable your AdBlocker.

I've Disabled AdBlock