youtube-data-api
youtube-data-api copied to clipboard
"name 'urllib' is not defined" error when using the search function despite importing library
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