SMAPPNYU / youtube-data-api

A Python Client for collect and parse public data from the Youtube Data API
https://youtube-data-api.readthedocs.io/en/latest/index.html
MIT License
79 stars 31 forks source link

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

Open faizessa opened 1 year ago

faizessa commented 1 year ago

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):