danksearch
danksearch is an async library to search youtube without using any API's.
Installation
Use the package manager pip to install danksearch.
pip install danksearch
Usage
General usage looks like
import danksearch, asyncio
async def searchvideo():
video=danksearch.Video()
await video.search("spooky scary skeletons")
print(video.url)
asyncio.run(searchvideo())
For grabbing a list of video urls(max 40)
import danksearch, asyncio
async def getvideos():
videolist=danksearch.VideoList()
await videolist.search("yes")
print(videolist.videos)
asyncio.run(getvideos())
BetterVideo(Beta)
BetterVideo is a new feature in danksearch that aims to be faster and extinguishes the need of retrying.
import danksearch, asyncio
async def getvideos():
video=danksearch.BetterVideo()
await video.search("yes")
print(video.url) #also has video.links for a full list of results
asyncio.run(getvideos())
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
Metadata
Release files for danksearch 0.1.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| danksearch-0.1.2.tar.gz | 5.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| danksearch-0.1.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 14.0 kB
Release files / danksearch-0.1.2.tar.gz
| Download URL | danksearch-0.1.2.tar.gz |
|---|---|
| Size | 5.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
450ae4949f85743b93df40a10d1b70bd92108a3fda4934fb402bad17e1823e7f
|
|
BLAKE2b-256 checksum How to use checksums |
a534f10e6dc481a58583ab1271d47f0a7483ce8630e3cf57c8889fe19e4eb252
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.4
|
Release files / danksearch-0.1.2-py3-none-any.whl
| Download URL | danksearch-0.1.2-py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f87ffe1470d5f46b0949a6de78678ec10e4a0089d1035d299a0e5aba0ee8f9ae
|
|
BLAKE2b-256 checksum How to use checksums |
c8ae9c3b0d336134c66152bda06c4562122da272e8c7d5c6e6ff6d9838dc74c1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.7.4
|