Click here to Skip to main content
15,881,089 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
5 videos are uploaded on the platform, I need to ask the video name from a user to input, next find the video ID and then add it to the API URL automatically. How can I find the videoID by VideoName?

I am NOT allowed to use urllib and loops

This is my code:

response = requests.get(url,headers=hdr )

Response: 200 OK

print("If Response=200 Script run is OK : " , response.status_code)

This is my JSON:

{

'accountId': 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX',

'id': '7ea0c5e34a',

'partition': None,

'externalId': None,

'metadata': None,

'name': 'davide_quatela--people_in_frankfurt',

'description': None,

'created': '2022-09-07T21:31:52.818+00:00',...

What I have tried:

How can I find the videoID by VideoName?
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900