Hi :) ich habe ein Script gemacht, in welchem man den Code der Paysafecard eingibt und dann ausgegeben wird, ob der Code funktioniert oder nicht. Das Problem ist, alles wird ausgegeben. Ich glaube der Grund ist, dass es die ganze Website durchsucht.
import requests
inputcode = input('Dein Code: ')
url = 'https://www.paysafecard.com/en-us/check-balance/'
headers = { 'useragent':'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36' }
data = { 'pin':inputcode }
r = requests.post(url, data=data, headers=headers)
content = r.content
content = str(content)
if 'The paysafecard PIN you entered has not been recognised. Please check your entry.' in content:
print('Dein Code ist falsch!')
if 'An error has occurred. Please contact the paysafecard service team.' in content:
print('Fehler')
if 'The full amount of credit on this paysafecard is still available.' in content:
print('Du hast noch volles Guthaben!')
if 'Access has been denied for security reasons.' in content:
print('Zugriff verweigert!')
if 'Your paysafecard credit:' in content:
print('Der Code funkitoniert!')
Danke im Voraus