Skip to main content

A small package for scraping medias.

Project description

mediascraper

Scraper!!

Example :

..

from discord import Embed
from discord.ext import commands

import mediascraper

hh = mediascraper.HentaiHaven()
ph = mediascraper.PornHub()
r34 = mediascraper.Rule34()
gb = mediascraper.Gelbooru()

class Media(commands.Cog):
    def __init__(self, bot):
        self.bot = bot


    @commands.command(aliases=['hh', 'hentai', 'hentaihaven'])
    async def hentai_haven(self, ctx, *args):
        video = await hh.category_search(str(" ").join(args))
        await ctx.send(video)

    @commands.command(aliases=['ph', 'porn', 'pornhub'])
    async def porn_hub(self, ctx, *args):
        video = await ph.video_search(str(" ").join(args))
        await ctx.send(video)

    @commands.command(alias=['r34', 'rule34'])
    async def rule34(self, ctx, *args):
        image = await r34.image_search(str(" ").join(args))
        await ctx.send(image)

    @commands.command(alias=['r34all', 'rule34all'])
    async def rule34all(self, ctx, *args):
        images = await r34.image_searchall(str(" ").join(args))
        for image in images:
            await ctx.send(image)

    @commands.command(aliases=['gbooru', 'gb'])
    async def gelbooru(self, ctx, *args):
        image = await gb.image_search(str(" ").join(args))
        await ctx.send(image)


def setup(bot):
    bot.add_cog(Media(bot))

..    

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

mediascraper-0.0.2-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file mediascraper-0.0.2-py3-none-any.whl.

File metadata

  • Download URL: mediascraper-0.0.2-py3-none-any.whl
  • Upload date:
  • Size: 4.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.0.3 requests-toolbelt/0.9.1 tqdm/4.48.0 CPython/3.8.5

File hashes

Hashes for mediascraper-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 cd5f278256163f8d34c056bd2e063b4a4024b29b00d297bd6abef5b4f3c16bcf
MD5 2322397d921aae936d2c000241d553db
BLAKE2b-256 abcb70ab5a0b65ec72384933b1ea36c99b48e1c6dfe689b525066335b691a171

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