question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

download comments into separate comments.json file

See original GitHub issue

Checklist

proposal

Rather than embedding site comments into the video.info.json file, it would be helpful to (perhaps optionally?) download them into a separate comments.json file.

rationale

  1. In my opinion the comments dont’t belong there semantically. (We wouldn’t embed subtitles in video.info.json either.)
  2. This gives the user more freedom in handling the data. For example, the user could convert the comments.json into some other human-readable format and then delete comments.json while keeping the video’s proper json data.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
pukkandancommented, Jan 23, 2022

Now you can do

--get-comments  # Fetch the comments
--exec pre_process:"del %(id)s.comments.json"  # Delete existing comment file
--print-to-file "%(comments)#j" "%(id)s.comments.json"  # Write comments to file

Eg:

➤ yt-dlp test:youtube --get-comments --exec pre_process:"del %(id)s.comments.json" --print-to-file "%(comments)j" "%(id)s.comments.json" --exec "type %(id)s.comments.json"
[TestURL] Test URL: https://www.youtube.com/watch?v=BaW_jenozKc&t=1s&end=9
[youtube] BaW_jenozKc: Downloading webpage
[youtube] BaW_jenozKc: Downloading android player API JSON
[Exec] Executing command: del BaW_jenozKc.comments.json
[info] BaW_jenozKc: Downloading 1 format(s): 248+251
[youtube] Downloading comment section API JSON
[youtube] Downloading ~70 comments
[youtube] Sorting comments by newest first
[youtube] Downloading comment API JSON page 1 (0/70)
[youtube]     Downloading comment API JSON reply thread 1 (17/70)
[youtube] Downloading comment API JSON page 2 (25/70)
[youtube]     Downloading comment API JSON reply thread 1 (27/70)
[youtube]     Downloading comment API JSON reply thread 2 (29/70)
[youtube]     Downloading comment API JSON reply thread 3 (43/70)
[youtube]     Downloading comment API JSON reply thread 4 (47/70)
[youtube]     Downloading comment API JSON reply thread 5 (50/70)
[youtube] Downloading comment API JSON page 3 (52/70)
[youtube]     Downloading comment API JSON reply thread 1 (57/70)
[youtube] Extracted 69 comments
[info] Writing '%(comments)j' to: BaW_jenozKc.comments.json
[info] Writing video metadata as JSON to: youtube-dl test video ''_ä↭𝕐  [BaW_jenozKc].info.json
[download] youtube-dl test video ''_ä↭𝕐  [BaW_jenozKc].webm has already been downloaded
[Exec] Executing command: type BaW_jenozKc.comments.json
[{"id": "Ugx79cLGh1lt6dphUQN4AaABAg", "text": "yeeeee!", "timestamp": 1640304000, "time_text": "1 month ago", "like_count": 0, "is_favorited": false, "author": "Ruizhi Wang", "author_id": "UCfavfWcbP_K71ThhwI1orpA", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLQV_kkUysLI8T4afJx_pUqNckNFLarSi67h31rS=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "root"}, {"id": "UgwcqvqJKbTNJ6cvwER4AaABAg", "text": "Thanks for ydl !!! Wonderful man!", "timestamp": 1635033600, "time_text": "3 months ago", "like_count": 0, "is_favorited": false, "author": "Rafael Reis Claudino", "author_id": "UCozo41g3pMl-_VoFEVLOHuA", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLQo14NoEELMurSQ6GYJm1Kv3OEGivW4urAJeg=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "root"}, {"id": "Ugx24HjhjnnWrtHilfd4AaABAg", "text": "Devender raikwar YouTube", "timestamp": 1635033600, "time_text": "3 months ago", "like_count": 0, "is_favorited": false, "author": "devender Raikwar", "author_id": "UCsU9JFeh95zEhsxnZ19QXcw", "author_thumbnail": "https://yt3.ggpht.com/qDt47o3xs76GSlHZWZI8i86xO5UTKh5sCGHaZ4XJpefyoiQzioIqmSa-LerBIRXWX55KxeaZ=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "root"}, {"id": "Ugy1-zEVmBIIfXBUMwB4AaABAg", "text": "\u81f4\u656c\u5927\u4f6c", "timestamp": 1629763200, "time_text": "5 months ago", "like_count": 0, "is_favorited": false, "author": "rin ye", "author_id": "UCZpz-rQaVQVO_Eujs13wp4w", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLSlck2oQSkt21s3Awu-mgDu32DTGcD-Ve7XhvIC=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "root"}, {"id": "Ugye9Wj2VjxPHLqUx5Z4AaABAg", "text": "thank you.... THIS HELPS ALOT", "timestamp": 1629763200, "time_text": "5 months ago", "like_count": 0, "is_favorited": false, "author": "Gojo Sotaru", "author_id": "UCNJiC3aaXT9YN9mITX-C60Q", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLQHoetDGtUYp1ffAf48llGkfubb2iPnJliF9qR6rA=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "root"}, {"id": "UgzwViWUQtKB6PpwMvx4AaABAg", "text": "Hello from stack overflow", "timestamp": 1627084800, "time_text": "6 months ago", "like_count": 0, "is_favorited": false, "author": "ChiaMuffin", "author_id": "UC_O_6p-GSXZxktVA_mOnfBg", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLSwgK7LB821sVX9MNhh9isRe8UsHjqP-szzvQ8C=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "root"}, {"id": "UgzMsDQ06MMgBHYUkT54AaABAg", "text": "So this is where the legend started", "timestamp": 1624492800, "time_text": "7 months ago", "like_count": 0, "is_favorited": false, "author": "Student of Nature", "author_id": "UCZgzrGBPe3E9AMzezArCjlg", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLQ_dB-gX80ct7_b4l7U6rZLRn2aEeUqfrIHz4XRJg=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "root"}, {"id": "UgzzIdzsCiTR7yeQ5gt4AaABAg", "text": "why no rickroll? :(", "timestamp": 1619222400, "time_text": "9 months ago", "like_count": 0, "is_favorited": false, "author": "J\u0113kabs", "author_id": "UCL74zMHf8mN93G1JB0GPXGQ", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLS0u2Njyb7FliQTGJP6yGqmcC6RhB88Z_UGnw=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "root"}, {"id": "UgxFK3diLe84zAIv5XR4AaABAg", "text": "Like Like Like!", "timestamp": 1616544000, "time_text": "10 months ago", "like_count": 0, "is_favorited": false, "author": "Rafael Lauxen", "author_id": "UCyNNsKNgRG0P0VCVLTP4j2w", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLTyg66JftDHRe2oiSkU4grmpv079q4DUksG_EKRPw=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "root"}, {"id": "UgxCz3u1FQ6BYE3FnhB4AaABAg", "text": "Ok, looks like I'm the only one who got here through recommendations...", "timestamp": 1614124800, "time_text": "11 months ago", "like_count": 0, "is_favorited": false, "author": "Aadhavan", "author_id": "UC60YvH5OvndtHr4VA1Bkfjw", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLRk1rDdjDo3HG_UiQ5kYTWdSjaBAv9qrfI7Hy-Kow=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "root"}, {"id": "Ugzjx2D0Uo9gQp0AMdJ4AaABAg", "text": "cool", "timestamp": 1611446400, "time_text": "1 year ago", "like_count": 0, "is_favorited": false, "author": "MadMan310", "author_id": "UCf1gZPONizlG55krYVaJFKA", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLTNWhC0yB1Fz_sYR3BhHKbB4lj9Ujs0-qL-QQ5TkQ=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "root"}, {"id": "UgzRC98MDH37lu2BmBt4AaABAg", "text": "based", "timestamp": 1611446400, "time_text": "1 year ago", "like_count": 0, "is_favorited": false, "author": "Joel Green", "author_id": "UCcvuD-t_l-_6ZN5xpc_GDBw", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLTlbEqkl8BTyY4uAdyzF0JtWeD4aXggzPScGOVHcis=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "root"}, {"id": "Ugx4y3mW29C_Cn0vdEF4AaABAg", "text": "nice", "timestamp": 1611446400, "time_text": "1 year ago", "like_count": 0, "is_favorited": false, "author": "nilk", "author_id": "UCCpVei4eDXlA_lhR7G9qPAA", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLQrr3SFtg-H2TpYhBuUVxB98QRUjcUZiN1hwHp--Q=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "root"}, {"id": "Ugy6e50M0-tnPZmFbWt4AaABAg", "text": "I don't care... I LOVE IT!", "timestamp": 1611446400, "time_text": "1 year ago", "like_count": 0, "is_favorited": false, "author": "Abe Cede", "author_id": "UC2Fx7K-mH6X18sj0U1lajsQ", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLRqZri4p_5hDXOsOnyQ9L4HOVC-48yrjuLAjQq6Tg=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "root"}, {"id": "UgzKiK_dbQUn-8WVHlJ4AaABAg", "text": "Absolute banger.", "timestamp": 1611446400, "time_text": "1 year ago", "like_count": 1, "is_favorited": false, "author": "Newbyte", "author_id": "UCssSNjqXSsQygXewvQq8_qg", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLRLbUUTcAj-34Cwg9wAr3MKaBDs1tO_T6cXQA=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "root"}, {"id": "UgwC-58GOXWO0mM-DkB4AaABAg", "text": "thank god its not Bug Buck Bunny", "timestamp": 1611446400, "time_text": "1 year ago", "like_count": 0, "is_favorited": false, "author": "James", "author_id": "UCQ8ofCqRT_M3Fhxtd_t5COg", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLQOZBURSPrnJA64yKlYRrV5eLIkGSX9ldBIScGJR7g=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "root"}, {"id": "UgxALRB-glYZS6Dq0FN4AaABAg", "text": "A significant corner of YouTube only some observant individuals will ever see, hello world.", "timestamp": 1611446400, "time_text": "1 year ago", "like_count": 39, "is_favorited": false, "author": "Millez", "author_id": "UClM3z3Itrj0lOSgWDjcqiBg", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLR5fzy_kjMWHgUdv6K6zyJ7DONIa8ToFjcjGLH_ZA=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "root"}, {"id": "UgxALRB-glYZS6Dq0FN4AaABAg.9G6u6Ia5seb9G8i9ve6iJx", "text": "Hello 1fb034d029c8b7feafe45f64e6a0808663ad315e", "timestamp": 1611446400, "time_text": "1 year ago", "like_count": 3, "is_favorited": false, "author": "AegisFromAshes", "author_id": "UCz4OT6ddxjN1e5G2tmK8ElQ", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLTdvNCv-RZ7CTPO3egtcFWCPYOMRNKMW_pXM_ABPw=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "UgxALRB-glYZS6Dq0FN4AaABAg"}, {"id": "UgxALRB-glYZS6Dq0FN4AaABAg.9G6u6Ia5seb9M9DJG5Cz6J", "text": "\u00a0@AegisFromAshes\u00a0 Hello, UCz4OT6ddxjN1e5G2tmK8ElQ", "timestamp": 1619222400, "time_text": "9 months ago", "like_count": 2, "is_favorited": false, "author": "XDRosenheim", "author_id": "UCn4DygQtDQbnkr66rZHorIA", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLSlGbDVCEZOoTztmb5FgadcqECQtYt1NzkJ5ME4Vg=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "UgxALRB-glYZS6Dq0FN4AaABAg"}, {"id": "UgxALRB-glYZS6Dq0FN4AaABAg.9G6u6Ia5seb9PMXfA7tAzF", "text": "Hello! Pun intended there?", "timestamp": 1627084800, "time_text": "6 months ago (edited)", "like_count": 0, "is_favorited": false, "author": "NylaTheWolf", "author_id": "UCUq45AT4rTNNlDbO1MYzwnQ", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLR-KeHgTpWmzpM37aJFBd4m0bTP78nGCBIeh7F7=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "UgxALRB-glYZS6Dq0FN4AaABAg"}, {"id": "UgxALRB-glYZS6Dq0FN4AaABAg.9G6u6Ia5seb9USg93cXkz0", "text": "Hello Git", "timestamp": 1637712000, "time_text": "2 months ago", "like_count": 0, "is_favorited": false, "author": "Stacklysm", "author_id": "UC3s3uMAfZ6r7EjGqWpDPG2w", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLRxUesUGlReaC8XiZ_cP3qMCmZ3eF0dPITJZyfL=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "UgxALRB-glYZS6Dq0FN4AaABAg"}, {"id": "UgxALRB-glYZS6Dq0FN4AaABAg.9G6u6Ia5seb9VwnjpE9GdH", "text": "\u00a0@Stacklysm\u00a0 hello there", "timestamp": 1640304000, "time_text": "1 month ago", "like_count": 0, "is_favorited": false, "author": "MeguMilk", "author_id": "UCId8pLsEmPpnHAFJlcyOVlw", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLQI5ZZa3jv7Zs44siLw37Gdl9pF6OrzR6R6nJZb5g=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "UgxALRB-glYZS6Dq0FN4AaABAg"}, {"id": "UgxoFK2hd4z41qgnGLx4AaABAg", "text": "Good luck in your trial, g", "timestamp": 1611446400, "time_text": "1 year ago", "like_count": 0, "is_favorited": false, "author": "Righteous Red", "author_id": "UCcb6LzwSeJKh6ext-mIXrHg", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLSw51sng_pa0LMiFwWoZBVAu7yN5w-SRV5QSZ5u=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "root"}, {"id": "UgzjY-lgDECLukC_siZ4AaABAg", "text": "I found this video from README.md file in the youtube-dl. Anyone else? :)", "timestamp": 1611446400, "time_text": "1 year ago", "like_count": 6, "is_favorited": false, "author": "Omegaplex", "author_id": "UCjdMvPwt28cjJXi1Oyb6wEw", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLRqqnXlS42CUNJvP6aZLe-fjv_izGIsdJtcjkyNLg=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "root"}, {"id": "UgyUD6KSkSbyjIEjT154AaABAg", "text": "rest in peace youtube-dl", "timestamp": 1611446400, "time_text": "1 year ago", "like_count": 3, "is_favorited": false, "author": "Alessio Scarlet", "author_id": "UCELR5EGXDAtlMrGHAwbwvyQ", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLQIetKlWjfeFxVls4lrwcM2b-NAeOeAs742CxTdPso=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "root"}, {"id": "UgxuuGkuaLo-HsrFXx94AaABAg", "text": "https://yt-dl.org/", "timestamp": 1611446400, "time_text": "1 year ago", "like_count": 0, "is_favorited": false, "author": "alch3myau", "author_id": "UCd1TtuYwyOiZPt2yWXJCYDQ", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLS7y_0cPl1YIPF0pk_YtVLH3578xqa1Dv7-fxSx=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "root"}, {"id": "UgzRm9QzxAzHFusq6zV4AaABAg", "text": "F youtube-dl\nTaken down by the RIAA", "timestamp": 1611446400, "time_text": "1 year ago (edited)", "like_count": 3, "is_favorited": false, "author": "Anim Mouse", "author_id": "UCiDwKkI6nPcJxwFTg0FUblw", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLQktflFdw7tSkrvvLnFN2YGh6iHDN7G0P8jj03idA=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "root"}, {"id": "UgzRm9QzxAzHFusq6zV4AaABAg.9FE-byfH6V-9G7S6P5r0_F", "text": "Au contraire, mon capitane... it's back~", "timestamp": 1611446400, "time_text": "1 year ago", "like_count": 1, "is_favorited": false, "author": "\uffa0Kawa", "author_id": "UCCvTQ-IxYgVM9zDoDAIVslw", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLSc51QZOtRCqN-k-R0lFimQXLuUcbppydhLLwyDVw=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "UgzRm9QzxAzHFusq6zV4AaABAg"}, {"id": "UgwYP0sdQzbAj_JVgAp4AaABAg", "text": "the 9 dislikes are from RIAA, google, and other music labels", "timestamp": 1611446400, "time_text": "1 year ago", "like_count": 73, "is_favorited": false, "author": "Unf\u00e4higerKanal", "author_id": "UCkyKcavhpFjTeOg4X2k5R2w", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLSkqQuuDcq8hA5azAjuRpydDfjauFwsxKVYDaRnrg=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "root"}, {"id": "UgwYP0sdQzbAj_JVgAp4AaABAg.9FCyVqRH0k89FEUzpKGRRT", "text": "LOL", "timestamp": 1611446400, "time_text": "1 year ago", "like_count": 1, "is_favorited": false, "author": "Francesco Minnocci", "author_id": "UC0G9ndZHwDck9pRMZHlwvpw", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLSMcwFVrLiJ3ePORNjuLuN2rQALHuo-5Levqmxo=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "UgwYP0sdQzbAj_JVgAp4AaABAg"}, {"id": "UgwYP0sdQzbAj_JVgAp4AaABAg.9FCyVqRH0k89PO-59ZmpqF", "text": "Google is a music label now?", "timestamp": 1627084800, "time_text": "6 months ago", "like_count": 0, "is_favorited": false, "author": "XDRosenheim", "author_id": "UCn4DygQtDQbnkr66rZHorIA", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLSlGbDVCEZOoTztmb5FgadcqECQtYt1NzkJ5ME4Vg=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "UgwYP0sdQzbAj_JVgAp4AaABAg"}, {"id": "UgzwLGGTy00YaVfSNFV4AaABAg", "text": "What a pity", "timestamp": 1611446400, "time_text": "1 year ago", "like_count": 2, "is_favorited": false, "author": "\u6b66\u72b6\u5143", "author_id": "UC8L6srLdwuZWQP3gU14bNzw", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLSyzCTTrzU6cXZyJcO1ANvnPN9Ul1Y-Vf5lqA=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "root"}, {"id": "UgwP-y2IDXI_-6MA4E14AaABAg", "text": "Thanks a lot !!  :)", "timestamp": 1611446400, "time_text": "1 year ago", "like_count": 2, "is_favorited": false, "author": "585ghz", "author_id": "UC4TcWVzl0jyinwKrGHL0qSQ", "author_thumbnail": "https://yt3.ggpht.com/yFynDD8EMp-R06TG5BXNOZehTFe45qqZTZ4l8R_p-pTv4dVU4qbmoN0VRiN51KZODlqMQccG5w=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "root"}, {"id": "Ugz-XjOw5oKX4VEHXw54AaABAg", "text": "This is a test video for youtube-dl. For more information, contact phihag@phihag.de", "timestamp": 1611446400, "time_text": "1 year ago", "like_count": 0, "is_favorited": false, "author": "Xerz", "author_id": "UCcHtg2AMkP4tzwWggVl9CKg", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLQY7XkIG5t8CdOR2u3glLvnzGPEs-QLFheSm-Z55w=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "root"}, {"id": "UgzASNMN9A6C9Jm3RHd4AaABAg", "text": "Sehr geehrter Herr Philipp Hagemeister. Ich m\u00f6chte Ihnen zu der hervorragenden Arbeit bei der Erstellung von youtube-dl gratulieren. Ich bin sehr dankbar f\u00fcr seine Gro\u00dfz\u00fcgigkeit und betrachte ihn als eine Seele des Lichts, die einer gigantischen Gemeinschaft zugute kommt. Ich sende Ihnen meine besten Energien direkt aus Niter\u00f3i, Rio de Janeiro, Brasilien. Beste W\u00fcnsche an Sie und Ihre Familie. Und ein tolles Leben!", "timestamp": 1611446400, "time_text": "1 year ago", "like_count": 1, "is_favorited": false, "author": "Carlos Alberto Teixeira", "author_id": "UClJbC2Zm4JAIFxOw19-EuFQ", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLSX76AACi0m-GdOKKGrs_Sdj5sLTtLBp_BdFOx4iA=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "root"}, {"id": "UgyWZSuct3UjTaiN8714AaABAg", "text": "Print(\"Hello World\")", "timestamp": 1611446400, "time_text": "1 year ago", "like_count": 0, "is_favorited": false, "author": "Alvy", "author_id": "UCoqPGAfV2Jsld12gg4UOuqw", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLRqK7CrkwpeXDkNQMGC9vcfx4EJMHSZbMlNiw=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "root"}, {"id": "UgxLXcAfTlqFO8mxbAx4AaABAg", "text": "test comment with emoji \ud83d\ude43\ud83d\udc40", "timestamp": 1611446400, "time_text": "1 year ago", "like_count": 1, "is_favorited": false, "author": "kaefinator", "author_id": "UC4Io8q_gM73Gfq71mvhV-8w", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLQ_8BO7RcjJ5wimvYQfRnMaJqrLvmrwY6BfzA=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "root"}, {"id": "UgxdJBeYMz4dga0xYZR4AaABAg", "text": "Ok so 9 people dislike this video.", "timestamp": 1611446400, "time_text": "1 year ago", "like_count": 0, "is_favorited": false, "author": "sudesh rai", "author_id": "UC5ZGatlX_kOHv5pHXbhZL0A", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLTDwUW2n2EScKglCMkYGiCb_EacskMTDbKnAF21og=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "root"}, {"id": "UgzcU-wCbVPwarR4f9J4AaABAg", "text": "smash like if you just came from github  :)", "timestamp": 1611446400, "time_text": "1 year ago", "like_count": 3, "is_favorited": false, "author": "Samuel Dominguez", "author_id": "UC0Kt9-t5h-RnC6kuuFygA9g", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLQSzm4hmxemrnct3MzTxXpCstCV9Z3V9j74uzZmIw=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "root"}, {"id": "UgzvJw1OfwiUW2EMQQR4AaABAg", "text": "Just signing the guestbook.", "timestamp": 1611446400, "time_text": "1 year ago", "like_count": 4, "is_favorited": false, "author": "delve", "author_id": "UCdmk8dvWw5l4AkDh7hCVflA", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLRPPJlXtxm4H2y-tywNA7LDeggWxwCqqCDQXTCA=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "root"}, {"id": "UgxppuP_FM5fqmGJmmZ4AaABAg", "text": "i so horned", "timestamp": 1611446400, "time_text": "1 year ago", "like_count": 1, "is_favorited": false, "author": "real cartoon girl", "author_id": "UC5Oj_uNnVE09izOB-gF_kCQ", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLSp00vrRRvAOrG9J-rDJvj_I4Z9YZVbxqkm_glojQ=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "root"}, {"id": "UgySZmx-mPNWe_haWzN4AaABAg", "text": "Ich liebe es XD", "timestamp": 1579824000, "time_text": "2 years ago", "like_count": 1, "is_favorited": false, "author": "MrRuffythemonkey", "author_id": "UC8OmbBIAH6AINBQrjZ00E0A", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLT9jK6pleaq6J8CwqvdYD-9qaBYc3NQt1kELdDt=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "root"}, {"id": "UgwwxKO1u7Phn9VRnex4AaABAg", "text": "I wonder what kind of great joke video the devs put in the youtube-dl man page.. Perhaps some hilarious nugget of internet wisdom... Maybe something profound that will make me realize how big and complex the world is.....", "timestamp": 1579824000, "time_text": "2 years ago", "like_count": 6, "is_favorited": false, "author": "Fernando", "author_id": "UCSm8WZ0Wcdj6rAfMBohjhbg", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLRc_wGdvJGRv4FVZrmnY6Mrb6qLSiprN3W0xO2P3ZE=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "root"}, {"id": "UgwwxKO1u7Phn9VRnex4AaABAg.8xjyaLnZ2129PMXpUUJHEB", "text": "honestly if i was them i would just Rickroll them. I mean it's too good of an opportunity", "timestamp": 1627084800, "time_text": "6 months ago", "like_count": 0, "is_favorited": false, "author": "NylaTheWolf", "author_id": "UCUq45AT4rTNNlDbO1MYzwnQ", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLR-KeHgTpWmzpM37aJFBd4m0bTP78nGCBIeh7F7=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "UgwwxKO1u7Phn9VRnex4AaABAg"}, {"id": "Ugz_53_CpctKufWFLtB4AaABAg", "text": "it's not working anymore", "timestamp": 1579824000, "time_text": "2 years ago", "like_count": 0, "is_favorited": false, "author": "Fabio Costa", "author_id": "UCWnlxQ9PdzamcQdKY8h3ZaA", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLQZj31jOo0jxn4U5pfuituk003G06PN_R6e9CWEMw=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "root"}, {"id": "UgwpXxeAn-4g3uucKLV4AaABAg", "text": "yay", "timestamp": 1548288000, "time_text": "3 years ago", "like_count": 2, "is_favorited": false, "author": "potato potato potato potato potato potato potato", "author_id": "UCysJh85TlP-pUzxaYCFoQtg", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLTmNtHAG1znzmm8XthZeS6lj-U3YtoTTDOZ4SnP3A=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "root"}, {"id": "UgwoKEbEMVW4AaLZsad4AaABAg", "text": "I was hoping for \"Never gonna give you up\" video :(", "timestamp": 1548288000, "time_text": "3 years ago", "like_count": 73, "is_favorited": false, "author": "The Weird Dev", "author_id": "UCjFnFCeQDhI1dRFwUsC_iUA", "author_thumbnail": "https://yt3.ggpht.com/qCEIzMwjx3cxyktTcatBmc5hooW6bUlOTWNMA0xLwr2afhgKPPkCCAtFmAQwpYIEEZDtZg_HNg=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "root"}, {"id": "UgwoKEbEMVW4AaLZsad4AaABAg.8klfbrWMxTC9DJKFyY3Vzj", "text": "me too :(", "timestamp": 1611446400, "time_text": "1 year ago", "like_count": 1, "is_favorited": false, "author": "585ghz", "author_id": "UC4TcWVzl0jyinwKrGHL0qSQ", "author_thumbnail": "https://yt3.ggpht.com/yFynDD8EMp-R06TG5BXNOZehTFe45qqZTZ4l8R_p-pTv4dVU4qbmoN0VRiN51KZODlqMQccG5w=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "UgwoKEbEMVW4AaLZsad4AaABAg"}, {"id": "UgwoKEbEMVW4AaLZsad4AaABAg.8klfbrWMxTC9G8Eq465nUa", "text": "This is likely never going to happen now, what with the RIAA DMCA debacle that happened. Thankfully that's been resolved and youtube-dl's primary Github repository is back online.", "timestamp": 1611446400, "time_text": "1 year ago (edited)", "like_count": 1, "is_favorited": false, "author": "raspberry1440kb", "author_id": "UCIwXNyHSeUKcv0gy3dkanOg", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLTOmCne851npJTUxV2JSenfP3Zl32EqVZMSKuWO=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "UgwoKEbEMVW4AaLZsad4AaABAg"}, {"id": "Ugw-a1k9BrFRktznflF4AaABAg", "text": "T\u00fcrkiye'den selamlar dostum.", "timestamp": 1548288000, "time_text": "3 years ago", "like_count": 0, "is_favorited": false, "author": "realSayko", "author_id": "UCo44UN1x7xc6oQoHI3Pw9ug", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLS5NjF_Ftwm6m4d-u50fsACkESF4IGacJmd6MCg=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "root"}, {"id": "Ugw-a1k9BrFRktznflF4AaABAg.8kevVsndO6x8umjr6GNHWC", "text": "as", "timestamp": 1579824000, "time_text": "2 years ago", "like_count": 0, "is_favorited": false, "author": "pcislocked", "author_id": "UCQ6kFmzTlueIQRuaQGDHWQQ", "author_thumbnail": "https://yt3.ggpht.com/3uNrbBMAPA5NF98z_FUTYhaVwqsphHDgwaVJ57bzJZ7Ps9WwFVDjilDN1PRMD17Wy0Aixj4sHQ=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "Ugw-a1k9BrFRktznflF4AaABAg"}, {"id": "Ugyl_fYg6mEsOIfswPd4AaABAg", "text": "I found you and download with Python :DDD", "timestamp": 1548288000, "time_text": "3 years ago", "like_count": 2, "is_favorited": false, "author": "\u0130smet Sezer \u015eim\u015fek", "author_id": "UCRgc_P4Atxfm3wmadDizUEA", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLRIQVyn0XD7IfqJYtzMK8TnuL67IpWB9dhCg7YB=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "root"}, {"id": "UgwWWdiMbp2yZo4X6VZ4AaABAg", "text": "I fucking love this tool. I might only use it five times in my life, but it is the definition of a perfect command line utility.", "timestamp": 1516752000, "time_text": "4 years ago", "like_count": 4, "is_favorited": false, "author": "duskesko", "author_id": "UC472ez8c5SjvVh_GsqYxTPQ", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLSZQlxec_1Wgx-3AO1cjbrRV8DvVzFcK004a8ax=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "root"}, {"id": "UgzvEVm1q9T3pyWHNBB4AaABAg", "text": "11", "timestamp": 1516752000, "time_text": "4 years ago", "like_count": 1, "is_favorited": false, "author": "DropDetec", "author_id": "UCK5etsKctJjmuphHgwwZr8A", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLQ9vKNwuHpNqLhfGeKnrbBXTxq-YIwCzdkFJrOR=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "root"}, {"id": "UgyuqaMglV41VADrPXp4AaABAg", "text": "look like i got supporter of artim vaulen !", "timestamp": 1516752000, "time_text": "4 years ago", "like_count": 1, "is_favorited": false, "author": "tellme baby", "author_id": "UCZE2SE4CNsHb7xfO9aQGRow", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLQeF-W_XcjG1WGEXqthNkPItkccEfoECooDFA=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "root"}, {"id": "UggqqXAxoF9LLngCoAEC", "text": "You are a hero!! Thank you for such an amazing python package", "timestamp": 1485216000, "time_text": "5 years ago", "like_count": 5, "is_favorited": false, "author": "Melle Dijkstra", "author_id": "UC9gJ9Ry0Ho2ojKYdopZX94g", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLSj739h3DOZalPY672G52ZDpBKQ95qoxT77GRp0Mg=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "root"}, {"id": "UgjbWCdEdikR6HgCoAEC", "text": "Honestly expected a RickRoll.", "timestamp": 1485216000, "time_text": "5 years ago", "like_count": 466, "is_favorited": false, "author": "Chris Harrington", "author_id": "UCw9diPXppwOMU43sdTJ7GOg", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLRHIFKVXC8K0rryNiU4Ip3MynA8724bjL9w31DAwI0=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "root"}, {"id": "UgjbWCdEdikR6HgCoAEC.8DLgjig24Hf8DWiMwauedn", "text": "+Chris Harrington I was expecting the same.", "timestamp": 1485216000, "time_text": "5 years ago", "like_count": 4, "is_favorited": false, "author": "Joel Christophel", "author_id": "UCzebPBalV9Cs2wH54XXAvSQ", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLR4ghqr3SLMn71Vdk-s_6hlfo63nwjEMIE35njALg=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "UgjbWCdEdikR6HgCoAEC"}, {"id": "UgjbWCdEdikR6HgCoAEC.8DLgjig24Hf8_AEyh-Z0rE", "text": "same here", "timestamp": 1516752000, "time_text": "4 years ago", "like_count": 3, "is_favorited": false, "author": "Tristan Luten", "author_id": "UCmYt0F5AYSKzxjf2B5JkL3w", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLQl_3ymz2Q4m0Ln4XmRLbEC4edaq2tpcmQ0VHs_nw=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "UgjbWCdEdikR6HgCoAEC"}, {"id": "UgjbWCdEdikR6HgCoAEC.8DLgjig24Hf8itBOGJoxTx", "text": "same", "timestamp": 1548288000, "time_text": "3 years ago", "like_count": 2, "is_favorited": false, "author": "nameless", "author_id": "UCPTbpLgzJNzls7QkX_Tlj_A", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLQ9vIIuEAp3TUrg4MpI2ON__P3zwSCefDqknYpnxg=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "UgjbWCdEdikR6HgCoAEC"}, {"id": "UgjbWCdEdikR6HgCoAEC.8DLgjig24Hf91qnaa-SA0f", "text": "everybody man, everybody", "timestamp": 1579824000, "time_text": "2 years ago", "like_count": 0, "is_favorited": false, "author": "Hank Hill", "author_id": "UCYm7K4jxKa0Piy2AnTMB9uQ", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLQYO-Djr4FhR-TBEunUkTETOmsZKFchDPBRRXB9lg=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "UgjbWCdEdikR6HgCoAEC"}, {"id": "UgjbWCdEdikR6HgCoAEC.8DLgjig24Hf9G9U3W5yjP6", "text": "same", "timestamp": 1611446400, "time_text": "1 year ago", "like_count": 1, "is_favorited": false, "author": "Pi7on", "author_id": "UCG1Svuvotfu1akn4AwVR55A", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLS8DaK71pT7cMOVeMD8ufy4mWrT9Jeu2HecHaC7VDU=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "UgjbWCdEdikR6HgCoAEC"}, {"id": "UgjbWCdEdikR6HgCoAEC.8DLgjig24Hf9H_mPffLnIf", "text": "Who are you XD? You are verified with 15 subscribers :P! Are you by any chance a YouTube employee?", "timestamp": 1611446400, "time_text": "1 year ago", "like_count": 2, "is_favorited": false, "author": "NTLyes", "author_id": "UC7JLxQDoYrxSpJp5KswuaoQ", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLSf_tRirh8apiEn_5XDSJJ1X2Ral4nTTo7yWpkG=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "UgjbWCdEdikR6HgCoAEC"}, {"id": "UgjbWCdEdikR6HgCoAEC.8DLgjig24Hf9JNKtOXCL6m", "text": "ditto", "timestamp": 1614124800, "time_text": "11 months ago", "like_count": 0, "is_favorited": false, "author": "Damian Campbell", "author_id": "UCqPxJcQLHW6-ooLd1QBYFGQ", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLQlZxq5WY1FABE-3jStII4tGSNSiXvc8P2H9txC=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "UgjbWCdEdikR6HgCoAEC"}, {"id": "UgjbWCdEdikR6HgCoAEC.8DLgjig24Hf9U9e_Xu3Mtw", "text": "really", "timestamp": 1637712000, "time_text": "2 months ago", "like_count": 0, "is_favorited": false, "author": "Study", "author_id": "UCA7iRaxcnY-wuvqNhFfi77A", "author_thumbnail": "https://yt3.ggpht.com/y98vOjT1v21xP5bhKkEH_X_nGy9P78uBE7TCkZ6FEiNUk1zVXFeOneWOrG7h4zevxldPJGXnCw=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "UgjbWCdEdikR6HgCoAEC"}, {"id": "UgjbWCdEdikR6HgCoAEC.8DLgjig24Hf9WFteaLo6Mn", "text": "Same!", "timestamp": 1640304000, "time_text": "1 month ago", "like_count": 0, "is_favorited": false, "author": "Dylan Rogers", "author_id": "UCfZSBBcw-Z54Zv7Pk7QMxzQ", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLTEjVuG9o2uR53cwRz7BQYAfDMdTFPnO_bgUnvekg=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "UgjbWCdEdikR6HgCoAEC"}, {"id": "UgjvawYWWKd3mXgCoAEC", "text": "github brought me here", "timestamp": 1453593600, "time_text": "6 years ago", "like_count": 81, "is_favorited": false, "author": "kabuCee", "author_id": "UC62G0HzUsLXSsEtwJHLpgBw", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLTQK-SpGzfmnhoBqB-evjgLVG5ihH7mpp9NGA=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "root"}, {"id": "Ugiwt-6nMLOoHHgCoAEC", "text": "Thank you Philipp. You have done a quite amazing job!", "timestamp": 1422057600, "time_text": "7 years ago", "like_count": 29, "is_favorited": false, "author": "Adam", "author_id": "UC_e39u-OZK20aTFmHslf5jg", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLTzncJf8XP7Yw2byUFRfWM4PlX4eO9U911GAIXdW20=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "root"}, {"id": "UggCGTL9Yyago3gCoAEC", "text": "You are a star, Philipp :)", "timestamp": 1390521600, "time_text": "8 years ago", "like_count": 7, "is_favorited": false, "author": "karona", "author_id": "UCujuBU_ZGf93ARB_XM0i7RQ", "author_thumbnail": "https://yt3.ggpht.com/ytc/AKedOLRvOwwibquNEIVeyt8SG3RP2FUq3lH32cIwgw=s176-c-k-c0x00ffffff-no-rj", "author_is_uploader": false, "parent": "root"}]
1reaction
Blacklandscommented, Feb 10, 2022

Additionally, it seems that --print-to-file cannot create folders. It creates the file if it doesn’t yet exist, but if the path to the file does not yet exist, it is not created, the whole process simply fails with [Errno 2] No such file or directory.

Read more comments on GitHub >

github_iconTop Results From Across the Web

JSON Comment Example — How to Comment in JSON Files
A way to skirt around the comments issue is to add data to your JSON file that function as comments. ... Here's another...
Read more >
Can comments be used in JSON? - Stack Overflow
No. JSON is data-only. If you include a comment, then it must be data too. You could have a designated data element called...
Read more >
Can we use comments in a JSON file? - Aram Koukia
Well the short answer is: No! Comments of the form //… or /*…*/ are not allowed in JSON. This answer is based on...
Read more >
5+ Ways and Tools for Adding Comments in JSON - Medium
In this article, we'll learn how to use comments in JSON files. We'll see workarounds and methods used by developers to add single-line...
Read more >
How can I add comments in JSON? - O'Reilly
The first option presented is an external tool, JSMin. By stripping the code before publishing for production, comments are removed with the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found