Skip to main content

An async youtube search library made for use with discord.py

Project description

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

MIT

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

danksearch-0.1.2.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

danksearch-0.1.2-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file danksearch-0.1.2.tar.gz.

File metadata

  • Download URL: danksearch-0.1.2.tar.gz
  • Upload date:
  • Size: 5.9 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for danksearch-0.1.2.tar.gz
Algorithm Hash digest
SHA256 450ae4949f85743b93df40a10d1b70bd92108a3fda4934fb402bad17e1823e7f
MD5 f1b8e5345f2c858b96970dbfda82d058
BLAKE2b-256 a534f10e6dc481a58583ab1271d47f0a7483ce8630e3cf57c8889fe19e4eb252

See more details on using hashes here.

File details

Details for the file danksearch-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: danksearch-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for danksearch-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f87ffe1470d5f46b0949a6de78678ec10e4a0089d1035d299a0e5aba0ee8f9ae
MD5 4cb5ade3fca88a0d34935a3f3cd234e7
BLAKE2b-256 c8ae9c3b0d336134c66152bda06c4562122da272e8c7d5c6e6ff6d9838dc74c1

See more details on using hashes here.

Supported by

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