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 Distribution
xgroovy-0.1.4.tar.gz
(3.9 kB
view details)
Built Distribution
File details
Details for the file xgroovy-0.1.4.tar.gz
.
File metadata
- Download URL: xgroovy-0.1.4.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f06f9bf00373fe140cdd278722751b5134072424a5fb36c880018c655fa1fa97 |
|
MD5 | 28b3144e4a900812e14071ca5b790226 |
|
BLAKE2b-256 | 40b5a05dd8372babd5bc006c9a7350590d6ccf554afb7cf63256740999b51170 |
File details
Details for the file xgroovy-0.1.4-py3-none-any.whl
.
File metadata
- Download URL: xgroovy-0.1.4-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.13
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 91d0ee736f64b910de975f8aca45d7291fa25383a10e0490c522bd72d6ad92eb |
|
MD5 | 8451922296d054c10370eb369c114674 |
|
BLAKE2b-256 | 104df4f52689cdd2a28a22ca89e666410762104df66a0e8cb26ff6b3c6d26f73 |