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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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