Metadata-Version: 2.1
Name: xgroovy
Version: 0.1.4
Summary: An asynchronous web scraper and video downloader using pyppeteer
Home-page: https://github.com/codex-ML/xgroovy
Author: codex-ML
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.6
Description-Content-Type: text/markdown
License-File: LICENCE.txt
Requires-Dist: pyppeteer
Requires-Dist: asyncio
Requires-Dist: wheel
Requires-Dist: loguru

#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())

```
