Search for YouTube videos WITHOUT YouTube Data API v3
Project description
youtube-search-python
Search videos in YouTube WITHOUT using YouTube Data API v3.
(Made from scratch without using YouTube Data API v3 and any other third party library!)
Working as of 2020.
Install
pip3 install youtube-search-python
Alternatively you can clone the repo, and run "Usage Example.py"
Usage
from youtubesearchpython import searchYoutube
search = searchYoutube("NoCopyrightSounds", offset = 1, mode = "json", max_results = 20)
print(search.result())
Like the module?
Consider starring the repo. Feel free to use.
Current Progress
Currently search result returns:
(Nearly everything that YouTube offers in its search result page.)
Feel free to open issue, if you find one.
- Video Link
- Video Title
- Channel Name
- Video Duration
- Video View Count
- Video ID
- Video Thumbnails
Example Result
{
"search_result": [
{
"index": 0,
"id": "mm460AbveF8",
"link": "https://www.youtube.com/watch?v=mm460AbveF8",
"title": "Heuse & WOLFHOWL & Riell - Daylight [NCS Release]",
"channel": "NoCopyrightSounds",
"duration": "2:34",
"views": 460246,
"thumbnails": [
"https://img.youtube.com/vi/mm460AbveF8/default.jpg",
"https://img.youtube.com/vi/mm460AbveF8/hqdefault.jpg",
"https://img.youtube.com/vi/mm460AbveF8/mqdefault.jpg",
"https://img.youtube.com/vi/mm460AbveF8/sddefault.jpg",
"https://img.youtube.com/vi/mm460AbveF8/maxresdefault.jpg"
]
},
{
"index": 1,
"id": "RQ5IkSeMQbc",
"link": "https://www.youtube.com/watch?v=RQ5IkSeMQbc",
"title": "Teyeq - Demons [NCS Release]",
"channel": "NoCopyrightSounds",
"duration": "2:35",
"views": 550176,
"thumbnails": [
"https://img.youtube.com/vi/RQ5IkSeMQbc/default.jpg",
"https://img.youtube.com/vi/RQ5IkSeMQbc/hqdefault.jpg",
"https://img.youtube.com/vi/RQ5IkSeMQbc/mqdefault.jpg",
"https://img.youtube.com/vi/RQ5IkSeMQbc/sddefault.jpg",
"https://img.youtube.com/vi/RQ5IkSeMQbc/maxresdefault.jpg"
]
},
{
"index": 2,
"id": "CnekLFazlxo",
"link": "https://www.youtube.com/watch?v=CnekLFazlxo",
"title": "Wanden & Slashtaq - Better Off [NCS Release]",
"channel": "NoCopyrightSounds",
"duration": "2:18",
"views": 559398,
"thumbnails": [
"https://img.youtube.com/vi/CnekLFazlxo/default.jpg",
"https://img.youtube.com/vi/CnekLFazlxo/hqdefault.jpg",
"https://img.youtube.com/vi/CnekLFazlxo/mqdefault.jpg",
"https://img.youtube.com/vi/CnekLFazlxo/sddefault.jpg",
"https://img.youtube.com/vi/CnekLFazlxo/maxresdefault.jpg"
]
},
{
"index": 3,
"id": "BG_W8Z74nG8",
"link": "https://www.youtube.com/watch?v=BG_W8Z74nG8",
"title": "Jim Yosef - Fall With Me [NCS Release]",
"channel": "NoCopyrightSounds",
"duration": "2:49",
"views": 866151,
"thumbnails": [
"https://img.youtube.com/vi/BG_W8Z74nG8/default.jpg",
"https://img.youtube.com/vi/BG_W8Z74nG8/hqdefault.jpg",
"https://img.youtube.com/vi/BG_W8Z74nG8/mqdefault.jpg",
"https://img.youtube.com/vi/BG_W8Z74nG8/sddefault.jpg",
"https://img.youtube.com/vi/BG_W8Z74nG8/maxresdefault.jpg"
]
},
{
"index": 4,
"id": "ZQHcERGiinM",
"link": "https://www.youtube.com/watch?v=ZQHcERGiinM",
"title": "Dark Heart - Crash Test Dummy [NCS Release]",
"channel": "NoCopyrightSounds",
"duration": "2:42",
"views": 718530,
"thumbnails": [
"https://img.youtube.com/vi/ZQHcERGiinM/default.jpg",
"https://img.youtube.com/vi/ZQHcERGiinM/hqdefault.jpg",
"https://img.youtube.com/vi/ZQHcERGiinM/mqdefault.jpg",
"https://img.youtube.com/vi/ZQHcERGiinM/sddefault.jpg",
"https://img.youtube.com/vi/ZQHcERGiinM/maxresdefault.jpg"
]
},
{
"index": 5,
"id": "2W3Y9KMgNw0",
"link": "https://www.youtube.com/watch?v=2W3Y9KMgNw0",
"title": "Brook Xiao - Fire (ft. Rachel Horter) [NCS Release]",
"channel": "NoCopyrightSounds",
"duration": "2:54",
"views": 746650,
"thumbnails": [
"https://img.youtube.com/vi/2W3Y9KMgNw0/default.jpg",
"https://img.youtube.com/vi/2W3Y9KMgNw0/hqdefault.jpg",
"https://img.youtube.com/vi/2W3Y9KMgNw0/mqdefault.jpg",
"https://img.youtube.com/vi/2W3Y9KMgNw0/sddefault.jpg",
"https://img.youtube.com/vi/2W3Y9KMgNw0/maxresdefault.jpg"
]
},
{
"index": 6,
"id": "SxfSpqFWJAg",
"link": "https://www.youtube.com/watch?v=SxfSpqFWJAg",
"title": "Arlow - Freefall [NCS Release]",
"channel": "NoCopyrightSounds",
"duration": "3:16",
"views": 961281,
"thumbnails": [
"https://img.youtube.com/vi/SxfSpqFWJAg/default.jpg",
"https://img.youtube.com/vi/SxfSpqFWJAg/hqdefault.jpg",
"https://img.youtube.com/vi/SxfSpqFWJAg/mqdefault.jpg",
"https://img.youtube.com/vi/SxfSpqFWJAg/sddefault.jpg",
"https://img.youtube.com/vi/SxfSpqFWJAg/maxresdefault.jpg"
]
},
{
"index": 7,
"id": "vIE6cuAhR4o",
"link": "https://www.youtube.com/watch?v=vIE6cuAhR4o",
"title": "Facading - Walk Away [NCS Release]",
"channel": "NoCopyrightSounds",
"duration": "3:19",
"views": 847707,
"thumbnails": [
"https://img.youtube.com/vi/vIE6cuAhR4o/default.jpg",
"https://img.youtube.com/vi/vIE6cuAhR4o/hqdefault.jpg",
"https://img.youtube.com/vi/vIE6cuAhR4o/mqdefault.jpg",
"https://img.youtube.com/vi/vIE6cuAhR4o/sddefault.jpg",
"https://img.youtube.com/vi/vIE6cuAhR4o/maxresdefault.jpg"
]
},
{
"index": 8,
"id": "1hxGuyfAErQ",
"link": "https://www.youtube.com/watch?v=1hxGuyfAErQ",
"title": "BH - Holding On [NCS Release]",
"channel": "NoCopyrightSounds",
"duration": "3:57",
"views": 936608,
"thumbnails": [
"https://img.youtube.com/vi/1hxGuyfAErQ/default.jpg",
"https://img.youtube.com/vi/1hxGuyfAErQ/hqdefault.jpg",
"https://img.youtube.com/vi/1hxGuyfAErQ/mqdefault.jpg",
"https://img.youtube.com/vi/1hxGuyfAErQ/sddefault.jpg",
"https://img.youtube.com/vi/1hxGuyfAErQ/maxresdefault.jpg"
]
},
{
"index": 9,
"id": "klTBagBYXpk",
"link": "https://www.youtube.com/watch?v=klTBagBYXpk",
"title": "RudeLies & Clarx - Erase [NCS Release]",
"channel": "NoCopyrightSounds",
"duration": "2:53",
"views": 1093597,
"thumbnails": [
"https://img.youtube.com/vi/klTBagBYXpk/default.jpg",
"https://img.youtube.com/vi/klTBagBYXpk/hqdefault.jpg",
"https://img.youtube.com/vi/klTBagBYXpk/mqdefault.jpg",
"https://img.youtube.com/vi/klTBagBYXpk/sddefault.jpg",
"https://img.youtube.com/vi/klTBagBYXpk/maxresdefault.jpg"
]
},
{
"index": 10,
"id": "K4DyBUG242c",
"link": "https://www.youtube.com/watch?v=K4DyBUG242c",
"title": "Cartoon - On & On (feat. Daniel Levi) [NCS Release]",
"channel": "NoCopyrightSounds",
"duration": "3:28",
"views": 358141460,
"thumbnails": [
"https://img.youtube.com/vi/K4DyBUG242c/default.jpg",
"https://img.youtube.com/vi/K4DyBUG242c/hqdefault.jpg",
"https://img.youtube.com/vi/K4DyBUG242c/mqdefault.jpg",
"https://img.youtube.com/vi/K4DyBUG242c/sddefault.jpg",
"https://img.youtube.com/vi/K4DyBUG242c/maxresdefault.jpg"
]
},
{
"index": 11,
"id": "EpRJY-hI6Bs",
"link": "https://www.youtube.com/watch?v=EpRJY-hI6Bs",
"title": "4 The Most Popular of NCS - NoCopyrightSounds | Cartoon | Disfigure | Electro-Light | Janji",
"channel": "Monster Boy Music",
"duration": "15:17",
"views": 10612191,
"thumbnails": [
"https://img.youtube.com/vi/EpRJY-hI6Bs/default.jpg",
"https://img.youtube.com/vi/EpRJY-hI6Bs/hqdefault.jpg",
"https://img.youtube.com/vi/EpRJY-hI6Bs/mqdefault.jpg",
"https://img.youtube.com/vi/EpRJY-hI6Bs/sddefault.jpg",
"https://img.youtube.com/vi/EpRJY-hI6Bs/maxresdefault.jpg"
]
},
{
"index": 12,
"id": "ABuNwLP-z9o",
"link": "https://www.youtube.com/watch?v=ABuNwLP-z9o",
"title": "\ud83d\udd25 Top 50 NoCopyRightSounds | Best of NCS | Most viewed ! Gaming Music | The Best of All Time | 2020",
"channel": "Freeme NCS Music",
"duration": "3:08:06",
"views": 5891447,
"thumbnails": [
"https://img.youtube.com/vi/ABuNwLP-z9o/default.jpg",
"https://img.youtube.com/vi/ABuNwLP-z9o/hqdefault.jpg",
"https://img.youtube.com/vi/ABuNwLP-z9o/mqdefault.jpg",
"https://img.youtube.com/vi/ABuNwLP-z9o/sddefault.jpg",
"https://img.youtube.com/vi/ABuNwLP-z9o/maxresdefault.jpg"
]
},
{
"index": 13,
"id": "yJg-Y5byMMw",
"link": "https://www.youtube.com/watch?v=yJg-Y5byMMw",
"title": "Warriyo - Mortals (feat. Laura Brehm) [NCS Release]",
"channel": "NoCopyrightSounds",
"duration": "3:50",
"views": 128317911,
"thumbnails": [
"https://img.youtube.com/vi/yJg-Y5byMMw/default.jpg",
"https://img.youtube.com/vi/yJg-Y5byMMw/hqdefault.jpg",
"https://img.youtube.com/vi/yJg-Y5byMMw/mqdefault.jpg",
"https://img.youtube.com/vi/yJg-Y5byMMw/sddefault.jpg",
"https://img.youtube.com/vi/yJg-Y5byMMw/maxresdefault.jpg"
]
},
{
"index": 14,
"id": "pLZq3jgE6qA",
"link": "https://www.youtube.com/watch?v=pLZq3jgE6qA",
"title": "Top 20 songs of Tobu - Best Of Tobu",
"channel": "Music Store",
"duration": "1:17:45",
"views": 10910877,
"thumbnails": [
"https://img.youtube.com/vi/pLZq3jgE6qA/default.jpg",
"https://img.youtube.com/vi/pLZq3jgE6qA/hqdefault.jpg",
"https://img.youtube.com/vi/pLZq3jgE6qA/mqdefault.jpg",
"https://img.youtube.com/vi/pLZq3jgE6qA/sddefault.jpg",
"https://img.youtube.com/vi/pLZq3jgE6qA/maxresdefault.jpg"
]
},
{
"index": 15,
"id": "zyXmsVwZqX4",
"link": "https://www.youtube.com/watch?v=zyXmsVwZqX4",
"title": "Cartoon - Why We Lose (feat. Coleman Trapp) [NCS Release]",
"channel": "NoCopyrightSounds",
"duration": "3:34",
"views": 147982391,
"thumbnails": [
"https://img.youtube.com/vi/zyXmsVwZqX4/default.jpg",
"https://img.youtube.com/vi/zyXmsVwZqX4/hqdefault.jpg",
"https://img.youtube.com/vi/zyXmsVwZqX4/mqdefault.jpg",
"https://img.youtube.com/vi/zyXmsVwZqX4/sddefault.jpg",
"https://img.youtube.com/vi/zyXmsVwZqX4/maxresdefault.jpg"
]
},
{
"index": 16,
"id": "i7MtYfUhfiQ",
"link": "https://www.youtube.com/watch?v=i7MtYfUhfiQ",
"title": "Top 20 songs of TheFatRat 2017 - TheFatRat Mega Mix",
"channel": "Music Store",
"duration": "1:14:54",
"views": 15652222,
"thumbnails": [
"https://img.youtube.com/vi/i7MtYfUhfiQ/default.jpg",
"https://img.youtube.com/vi/i7MtYfUhfiQ/hqdefault.jpg",
"https://img.youtube.com/vi/i7MtYfUhfiQ/mqdefault.jpg",
"https://img.youtube.com/vi/i7MtYfUhfiQ/sddefault.jpg",
"https://img.youtube.com/vi/i7MtYfUhfiQ/maxresdefault.jpg"
]
},
{
"index": 17,
"id": "LHvYrn3FAgI",
"link": "https://www.youtube.com/watch?v=LHvYrn3FAgI",
"title": "Unknown Brain - Superhero (feat. Chris Linton) [NCS Release]",
"channel": "NoCopyrightSounds",
"duration": "3:02",
"views": 79477622,
"thumbnails": [
"https://img.youtube.com/vi/LHvYrn3FAgI/default.jpg",
"https://img.youtube.com/vi/LHvYrn3FAgI/hqdefault.jpg",
"https://img.youtube.com/vi/LHvYrn3FAgI/mqdefault.jpg",
"https://img.youtube.com/vi/LHvYrn3FAgI/sddefault.jpg",
"https://img.youtube.com/vi/LHvYrn3FAgI/maxresdefault.jpg"
]
},
{
"index": 18,
"id": "CLEWmT_8ppM",
"link": "https://www.youtube.com/watch?v=CLEWmT_8ppM",
"title": "Clarx - Zig Zag [NCS Release]",
"channel": "NoCopyrightSounds",
"duration": "3:28",
"views": 9680739,
"thumbnails": [
"https://img.youtube.com/vi/CLEWmT_8ppM/default.jpg",
"https://img.youtube.com/vi/CLEWmT_8ppM/hqdefault.jpg",
"https://img.youtube.com/vi/CLEWmT_8ppM/mqdefault.jpg",
"https://img.youtube.com/vi/CLEWmT_8ppM/sddefault.jpg",
"https://img.youtube.com/vi/CLEWmT_8ppM/maxresdefault.jpg"
]
},
{
"index": 19,
"id": "8Yue9YYdNLM",
"link": "https://www.youtube.com/watch?v=8Yue9YYdNLM",
"title": "Dirty Palm - Oblivion (feat. Micah Martin) [NCS Release]",
"channel": "NoCopyrightSounds",
"duration": "3:51",
"views": 21254046,
"thumbnails": [
"https://img.youtube.com/vi/8Yue9YYdNLM/default.jpg",
"https://img.youtube.com/vi/8Yue9YYdNLM/hqdefault.jpg",
"https://img.youtube.com/vi/8Yue9YYdNLM/mqdefault.jpg",
"https://img.youtube.com/vi/8Yue9YYdNLM/sddefault.jpg",
"https://img.youtube.com/vi/8Yue9YYdNLM/maxresdefault.jpg"
]
}
]
}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file youtube-search-python-1.2.2.tar.gz
.
File metadata
- Download URL: youtube-search-python-1.2.2.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.2 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6eb7c89bd85bead87b5ef68c64738437a4afcbcfa60b84d7fb268e17a76dc4dd |
|
MD5 | fd74eec17064c2a98a676353b7872367 |
|
BLAKE2b-256 | d4e23f15624f91aecab1764062bca3afa7eeb5505ba771a3d8c79c83661746b9 |
File details
Details for the file youtube_search_python-1.2.2-py3-none-any.whl
.
File metadata
- Download URL: youtube_search_python-1.2.2-py3-none-any.whl
- Upload date:
- Size: 8.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.24.0 setuptools/47.3.2 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 592f73e75be70f21c4f5311b584512cd75ec7cdb3d2573d1167fccf6271bf1ae |
|
MD5 | 0a76e72b60222147aee00b1e6e4afd1f |
|
BLAKE2b-256 | e525995ec7c2ab4b38b21db81f2456ee8c4281a05ec018421e69f5db948666ba |