Skip to main content

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_link
    • 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.

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

yp_dl-0.9.5.tar.gz (4.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yp_dl-0.9.5-py3-none-any.whl (5.7 kB view details)

Uploaded Python 3

File details

Details for the file yp_dl-0.9.5.tar.gz.

File metadata

  • Download URL: yp_dl-0.9.5.tar.gz
  • Upload date:
  • Size: 4.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.0 Linux/6.2.0-1015-azure

File hashes

Hashes for yp_dl-0.9.5.tar.gz
Algorithm Hash digest
SHA256 cc5afa7429d5f9a77c59421b6720deef7df5706ee1fb8487897f86f93d75a0a2
MD5 13ec9747eb3de97883d66640b8ad1dba
BLAKE2b-256 bb33c37f84ef3f18c220e93be410a162d371853bb9b1031673a8b745495be4eb

See more details on using hashes here.

File details

Details for the file yp_dl-0.9.5-py3-none-any.whl.

File metadata

  • Download URL: yp_dl-0.9.5-py3-none-any.whl
  • Upload date:
  • Size: 5.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.6.1 CPython/3.11.0 Linux/6.2.0-1015-azure

File hashes

Hashes for yp_dl-0.9.5-py3-none-any.whl
Algorithm Hash digest
SHA256 743bb41228e35cb7cbe27e4fdace7bcc557fae21992df751b942a5627b15246b
MD5 be77f53724c7683e9d4c434af7497d6e
BLAKE2b-256 20bf8d0856a6a1dff3cbc61f8f87172004388f474bae71bb4f4a8cf77ec0cf3b

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page