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.1.tar.gz (5.9 kB view details)

Uploaded Source

Built Distribution

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

danksearch-0.1.1-py3-none-any.whl (8.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: danksearch-0.1.1.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.1.tar.gz
Algorithm Hash digest
SHA256 f611866a71db1ddf708ea059699ddf89c272c5ffdbf5be464673684177384ac2
MD5 64b48c06fc53c279943b32288a55ab1a
BLAKE2b-256 e252ca849f6c58d603895450d4eb4dc1e2ba08cc20ac6d38bd032af2ff7aa66f

See more details on using hashes here.

File details

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

File metadata

  • Download URL: danksearch-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 8.1 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 06a3cdbd5825ce3a991627385c662f71eba662ca5039fbe26ef3f496e823b452
MD5 68827a36a681d1dbe84f75110be79006
BLAKE2b-256 c08132ae167fdb074d4fd086fbf0d3d44b31d927cb1b79dffba752ad61db9f0b

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