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
Metadata
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)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| youtube_websearch-1.0.1.tar.gz | 3.2 kB | Without provenance | Details for youtube_websearch-1.0.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| youtube_websearch-1.0.1-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for youtube_websearch-1.0.1-py2.py3-none-any.whl |
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
|
Security for youtube-websearch 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.