Skip to main content

youtube websearch libary

  • no api key required
  • no api limit

search through via web scraping

if you know how to test something like this, feel free to make as issue/pull request

Example Usage

open we will rock you in a webbrowser:

import youtube_websearch as yt
import webbrowser

yt_basis = "https://www.youtube.com/watch?v="

search_results = yt.search('we will rock you')
# search_results = yt.search('we will rock you', useragent="something")  # you can set your own useragent
videoId = search_results[0]["videoId"]

webbrowser.open(yt_basis + videoId)

pip install youtube-websearch

This function only returns the videos with this data:

  • videoId
  • title
  • publishedTimeText
  • lengthText
  • viewCountText

if you need more videodata like thumbnails etc. use messy_video_search if you think there is data this function should return, feel free and make a issue/pull request

This functions returns the plain video search data.

if you need meta information about your search use plain_search

This function returns the whole search json. its a very messy thing with a lot of irrelevant data

Release files for youtube-websearch 1.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for youtube-websearch 1.0.1
File Size Uploaded
youtube_websearch-1.0.1.tar.gz 3.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for youtube-websearch 1.0.1
File Interpreter ABI Platform
youtube_websearch-1.0.1-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 18.7 kB

Release files / youtube_websearch-1.0.1.tar.gz

Download URL youtube_websearch-1.0.1.tar.gz
Size 3.2 kB
Tags Source
SHA-256 checksum
How to use checksums
14dbacec93f983f38f40901265bb0a605920cafc392a25bc21b4c9c832c6c01b
BLAKE2b-256 checksum
How to use checksums
e142759619184c660bd7c916163b13e29301b4df5b3b1f0ea9d789ecbb8f3cf2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Release files / youtube_websearch-1.0.1-py2.py3-none-any.whl

Download URL youtube_websearch-1.0.1-py2.py3-none-any.whl
Size 15.4 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
0dffae6389e055d829ab5bed8854beac8e6c707a8ed96995b8f1e97adc154af5
BLAKE2b-256 checksum
How to use checksums
3a2383518b7d206d3b196ed8dbb7535615e76d9716979200cb1d146f96bcfc4c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Release history Release notifications | RSS feed

This release

1.0.1 This release

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page