Asynchronous scraper to download youtube community posts
Project description
YoutubeCommunityScraper | yp-dl
yp-dl is an asynchronous scraper for downloading Youtube Community posts in json format.
Motivation
Youtube stops retrieving old community posts after 200 posts on a channel. There's no way to access/view older posts if you do not have the link to them or their ID.
Installation
pip install yp-dl
Features
- Asynchronous support
- For every post it retrieves:
- post_link
- time_since
- utc_timestamp at download
- video_link
- image_links
- text_content
- poll_content
- Update support for the json files when new posts are made
- Progress visualization during download
Usage
usage: yp-dl [-h] [-f FOLDER_PATH] [-r] [-u] [-v] link [link ...]
An asynchronous scraper that downloads youtube posts from youtube channels in json format.
positional arguments:
link Provide any number of links. Link example: https://www.youtube.com/@3blue1brown
options:
-h, --help show this help message and exit
-f FOLDER_PATH, --folder-path FOLDER_PATH
Provide the path of the folder you wish to store/update your json files. If it's in the
current working directory (CWD), just type the folder name. If none is provided, everything
will be stored/updated in the CWD.
-r, --reverse Reverses the order of the posts from oldest first to newest first. Be wary though, if you
use this option with --update, your post order will be messed up.
-u, --update Appends the existing json file(s) with the new posts.
-v, --verbose Gives more details about what's going on when the program runs.
-o, --overwrite-cookie
Overwrites the SOCS cookie in the cookies.txt file with a Default SOCS cookie within
the project. Use if having problems retrieving posts.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file yp_dl-0.9.8.tar.gz.
File metadata
- Download URL: yp_dl-0.9.8.tar.gz
- Upload date:
- Size: 6.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.0 Linux/6.5.0-1022-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
303296383d9d3b0112f5be0b9d1f86506f41cbba41e8b2f648d43ad7320dd815
|
|
| MD5 |
941f0fcc07932279471699c9bb212cb5
|
|
| BLAKE2b-256 |
8e473ea3741ccf140019dc3309b52feb4a3a1562ed6d730bdf0848887e6edfc3
|
File details
Details for the file yp_dl-0.9.8-py3-none-any.whl.
File metadata
- Download URL: yp_dl-0.9.8-py3-none-any.whl
- Upload date:
- Size: 7.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.3 CPython/3.11.0 Linux/6.5.0-1022-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f29ef9f647bea84afe7f912fe4c7b938891585bbe7d433a870c789fa0b00ead8
|
|
| MD5 |
2ce55da5e5ff7757844f905b9ac343c3
|
|
| BLAKE2b-256 |
e2096dd0bb5024cfbdcebbb407116175a8608dbbc36a2b25d26da70df86885e8
|