The code:
import googleapiclient
from googleapiclient.discovery import build
youtube = build('youtube', 'v3', developerKey='Key')
request = youtube.search().list(
part='snippet',
q="Whistling Diesel",
maxResults=3,
order="date",
type="video"
)
response = request.execute()
print(response)```
Followed a tutorial where this code works, attempting to use the google youtube api to make search queries through youtube and return the top response- doing this tutorial to test the concept.
Code returned: ``TimeoutError: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond``
I have tested my API key, and it works.
I have turned off my firewall and the same error occurs.
I have made requests via the `request` libary and had it return as expected.
Not sure what else to try to get this to work.
Any advice would be appreciated!