youtube-data-api icon indicating copy to clipboard operation
youtube-data-api copied to clipboard

"name 'urllib' is not defined" error when using the search function despite importing library

Open faizessa opened this issue 1 year ago • 0 comments

Describe the bug I am getting the error "name 'urllib' is not defined" when using the search function based on location - the error occurs with urllib.parse despite including import urllib.parse at the top of my code.

Expected behavior The output should be similar to as outlined here.

Traceback The error occurs when I run the following test_search = yt.search(location = (2.09319, 96.647463), \ locationRadius = "50km", \ order_by = "viewCount", \ topic_id = "/m/06bvp", \ max_results = 5)

Desktop (please complete the following information):

  • OS: macOS
  • Version 13.4.1

faizessa avatar Jun 26 '23 15:06 faizessa