#๐Ÿ”’ TimeoutError: [WinError 10060]

6 messages ยท Page 1 of 1 (latest)

pallid berry
#

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!
coarse sealBOT
#

@pallid berry

Python help channel opened

Remember to:

  • Ask your Python question, not if you can ask or if there's an expert who can help.
  • Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
  • Explain what you expect to happen and what actually happens.

:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.

pallid berry
#

The end goal is to get the link to a youtube vide from a search query, but right now I'm just trying to get it to return anything

pallid berry
#

Realizing it might be too late for folks to respond, might have to try again tomorrow...

coarse sealBOT
#

@pallid berry

Python help channel closed

This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.