momowriter
Regular Member
- Nov 22, 2018
- 286
- 106
hi guys, I'm super new to Python,
I have a list of streaming site codes, and I just want to check if it's dead or inactive or working,
I went online and they say using python would be the best solution, i'm using streamtape API btw,
I copied a simple code as below and tried to get it to work on python but I keep getting 403 error,
import requests
login = 'myloginfjkfdlsjlk'
key = 'mykeyblahblahblah'
file = 'XorQOyJrdDhzpB'
response = requests.get('https://api.streamtape.com/file/info?file={file}&login={login}&key={key}')
print(response.json())
I think I'm missing something here,
please help a simple fix is all I need. at least to get a 200 response would do wonders in pushing me ahead!
Thanks
I have a list of streaming site codes, and I just want to check if it's dead or inactive or working,
I went online and they say using python would be the best solution, i'm using streamtape API btw,
I copied a simple code as below and tried to get it to work on python but I keep getting 403 error,
import requests
login = 'myloginfjkfdlsjlk'
key = 'mykeyblahblahblah'
file = 'XorQOyJrdDhzpB'
response = requests.get('https://api.streamtape.com/file/info?file={file}&login={login}&key={key}')
print(response.json())
I think I'm missing something here,
please help a simple fix is all I need. at least to get a 200 response would do wonders in pushing me ahead!
Thanks