Skip to main content

An asynchronous web scraper and video downloader using pyppeteer

Project description

#xgroovy.com module

#USAGE

import asyncio
from xgroovy.scraper import scrape_videos
from xgroovy.downloader import download_video

async def lol():
    videos_json = await scrape_videos("cosplay")
    print(videos_json)

#Run the async function using asyncio.run
asyncio.run(lol())



import asyncio
from xgroovy import scrape_videos, download_video

async def test_scrape_videos():
    videos = await scrape_videos("cosplay")
    assert len(videos) > 0

async def test_download_video():
    video_url = await download_video("your_video_page_url_here")
    assert video_url is not None

if __name__ == "__main__":
    asyncio.run(test_scrape_videos())
    asyncio.run(test_download_video())

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

xgroovy-0.1.3-py3-none-any.whl (4.5 kB view details)

Uploaded Python 3

File details

Details for the file xgroovy-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: xgroovy-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 4.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.10.13

File hashes

Hashes for xgroovy-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 9a54812c7bccf08d804cfb6dd3b4e4f40487dee3ce8e3682d33b3ef1c0cabdaa
MD5 0f42547b2e468b998d20b516e8d432c2
BLAKE2b-256 a9f0a3c56a27d6ccbbcf496935867f4970c9fab77338bbe7a898951615305ab6

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