Limited Time — Lifetime Access for just $99. Lock in before prices rise.

UScraper
Tutorials

How to Scrape YouTube Comments from Short Videos

Scrape YouTube comments to CSV without code. Export usernames, comment text, likes, reply counts and video URLs with a local desktop app, no API key.

UScraper
June 30, 2026
8 min read
#how to scrape youtube comments#youtube comments scraper python#youtube data api comments#youtube comments api vs scraper#best youtube comment scraper#youtube shorts comments scraper#youtube comments to csv#youtube comment search
How to Scrape YouTube Comments from Short Videos

This tutorial shows how to scrape YouTube comments from short video watch URLs into CSV with the YouTube Comments Scraper for Short Videos template for UScraper. You will import the workflow, add approved video URLs, set the export path, validate the rows, and decide when the official YouTube Data API is a better fit.

Before you start

Prerequisites, scope, and permission checks

You need UScraper installed as a local desktop app, a short list of YouTube video URLs you are allowed to process, and a folder where the CSV should be saved. The template is designed around https://www.youtube.com/watch?v=... URLs, including short-form videos opened through their watch URL form. If you start from /shorts/..., open the video and copy the watch URL before running the workflow.

This guide is for supervised collection from comments you can review in a normal browser session. It is not a login bypass, CAPTCHA bypass, private-data collector, or moderation backdoor. YouTube may show login, age, bot-verification, or regional prompts; handle those manually in a persistent browser profile or stop the run.

Technical access is not the same as permission. Review YouTube's current terms, keep volumes modest, avoid collecting sensitive personal data, and document why the comment export is needed before using it in a business workflow.


API or scraper

YouTube comments API vs scraper: choose the right path

The official YouTube Data API has documented comment resources. commentThreads.list returns comment threads that match request parameters, and comments.list can retrieve comments by ID or replies by parent comment ID. That makes the API cleaner for sanctioned integrations that can manage API keys, OAuth, quotas, and pagination.

A scraper solves a different problem. It is useful when an analyst wants a visible browser run, a fast CSV, and no Python setup. The trade-off is maintenance: YouTube can change its page markup, hide comments, throttle sessions, or require manual verification.

ApproachBest forWatch out for
YouTube Data APIApproved apps and quota-aware pipelinesAPI key or OAuth setup, pagination, quota limits, and reply handling
Python scriptDevelopers who want custom logicCode maintenance, dependency setup, rate handling, and export QA
UScraper templateNo-code local CSV exports from visible pagesBrowser prompts, layout drift, and selector validation
Hosted scraperCloud scheduling or larger managed jobsVendor pricing, data custody, and platform-compliance review

If you searched for youtube comments scraper python, the API route is worth learning. If the job is "download visible comments from these five short videos into a spreadsheet," the UScraper template is usually faster to validate.


Workflow anatomy

What the YouTube comments scraper exports

The template's JSON is the authoritative workflow definition. Its block sequence is Set Window Size -> Navigate -> Wait for Page Load -> Sleep -> Inject JavaScript -> Wait for Element -> Structured Export -> Loop Continue. The JavaScript block scrolls comments, waits for lazy-loaded rows, captures the video title, and writes normalized attributes onto each loaded comment thread. Structured Export reads those attributes and appends rows to the CSV.

CSV fieldWhat it containsValidation check
video_urlSource watch URLConfirm it matches the row's video title.
video_titleVisible video title or document-title fallbackCompare with the browser after loading.
comment_user_nameComment author display nameCheck that author text is not blank on sampled rows.
commentTop-level visible comment textConfirm long comments are not cut off by a collapsed state.
vote_countsVisible like or vote count textBlanks can be valid when YouTube hides zero counts.
sub_reply_amountsVisible reply prompt, such as 4 repliesThe workflow captures reply count text, not every reply body.
comment_timePublished time label shown on the commentExpect relative labels such as 2 weeks ago.
comment_author_channel_urlAbsolute URL for the author's channelSample links before enrichment.

Runbook

How to scrape YouTube comments to CSV

1

Import the template

Open YouTube Comments Scraper for Short Videos, download the JSON, and import it into UScraper.

2

Paste watch URLs

Replace the sample Navigate URLs with approved youtube.com/watch?v=... links. Keep tracking parameters only when they matter to your audit trail.

3

Confirm the browser state

Use a persistent profile if YouTube asks for login, consent, or bot verification. Solve manual prompts in the browser; do not automate around access controls.

4

Set the CSV destination

In Structured Export, confirm youtube_comments_scraper_shortvideo.csv, headers, append mode, and a project-specific save folder.

5

Run one URL, then batch

Run one video, compare rows against the browser, then let Loop Continue move through the remaining video list.

After the first run, sort the CSV by video_url and comment_user_name. A healthy export should show one row per loaded top-level comment thread. If rows repeat, the same URL may have been entered twice or a loop may have resumed after export had already appended rows.


Quality control

Validate the export before analysis

YouTube comments are dynamic. Row counts can change by region, account state, sorting, moderation, and whether comments are enabled. Keep the browser open beside the CSV and inspect rows from the beginning, middle, and end of the file.

SymptomLikely causeFix
Zero rows exportedComments disabled, page challenge, or selector driftCheck the video manually, handle prompts, and rerun one URL.
Fewer rows than expectedComments did not finish lazy-loadingIncrease wait time or reduce batch size.
Blank video_titleMetadata selectors changed or page title did not hydrateRefresh the page and verify the title selector against the browser.
Missing reply bodiesTemplate captures top-level threads and reply count textUse the API or a custom workflow when full reply text is required.
Mixed videos in one fileAppend mode collected multiple runsSave each campaign to a separate folder.

For recurring exports, keep an audit note with source URLs, run date, CSV filename, profile used, and selector changes. That context matters when comments are later deleted or moderated.


Common issues

Troubleshooting YouTube comment scraping

YouTube comments may be publicly visible, but automated collection can still be restricted by YouTube terms, robots rules, copyright, privacy law, and local regulations. Do not bypass access controls, collect private data, or republish comments without a valid basis. Get legal review before using exports commercially.


Next step

Download the YouTube comments scraper template

When you are ready to run the tutorial, download the JSON from YouTube Comments Scraper for Short Videos and keep this article open for QA. For adjacent workflows, browse all UScraper templates or the UScraper blog for more local CSV export tutorials.

FAQ

Frequently asked questions

Here are some of our most common questions. Can't find what you're looking for?

View All FAQs

Stop writing scripts. Start scraping visually.

Download UScraper and build your first web scraper in under 10 minutes. No subscriptions, no code, no limits.

Available on Windows 10+ and macOS 12+ · Need help? [email protected]