Skip to main content

searches youtube for videos without using the official api

Project description

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 libary provides multiple depths of search:

video_search

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

messy_video_search

This functions returns the plain video search data.

if you need meta information about your search use plain_search

plain_search

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

youtube_websearch-1.0.1.tar.gz (3.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

youtube_websearch-1.0.1-py2.py3-none-any.whl (15.4 kB view details)

Uploaded Python 2Python 3

File details

Details for the file youtube_websearch-1.0.1.tar.gz.

File metadata

  • Download URL: youtube_websearch-1.0.1.tar.gz
  • Upload date:
  • Size: 3.2 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for youtube_websearch-1.0.1.tar.gz
Algorithm Hash digest
SHA256 14dbacec93f983f38f40901265bb0a605920cafc392a25bc21b4c9c832c6c01b
MD5 b75253e543e1ef756cd558fd4baec30d
BLAKE2b-256 e142759619184c660bd7c916163b13e29301b4df5b3b1f0ea9d789ecbb8f3cf2

See more details on using hashes here.

File details

Details for the file youtube_websearch-1.0.1-py2.py3-none-any.whl.

File metadata

  • Download URL: youtube_websearch-1.0.1-py2.py3-none-any.whl
  • Upload date:
  • Size: 15.4 kB
  • Tags: Python 2, Python 3
  • Uploaded using 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

File hashes

Hashes for youtube_websearch-1.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 0dffae6389e055d829ab5bed8854beac8e6c707a8ed96995b8f1e97adc154af5
MD5 56315e2a1fdafac1bb7ef03663cd1e87
BLAKE2b-256 3a2383518b7d206d3b196ed8dbb7535615e76d9716979200cb1d146f96bcfc4c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page