Как получать комментарии с Яндекс Дзен? Со своего канала.
Думал даже парсить страницу. Но "по быстрому" не смог найти где там код комментариев.
(Там непонятная смесь из JS и IFRAME.)
PS
На главной канала в админке есть такой код
<script type="application/json" id="config"> {"avatarsHost":"avatars.mds.yandex.net",
"advHostname":"zenadservices.net",
"disableUploadGif":false,"
disableNarrativeCreation":false,"
disableNicknamesAndDomainsChanging":false,
"showAdvancedStatistic":true,"
showAdvancedStatisticFromTs":1511730000000,"
showAdvancedStatisticNarrative":true,"
showAdvancedStatisticNarrativeFromTs":1518048000000,"
autoHideFirstSlideNarrative":false,"disablePublicationPixels":false,"
disableTagsWriting":false,"
minPixelCompleteSeconds":15,"externalLinksEnabled":true,"
commentsEnabled":true,"
commentsApiUrl":"\u002Fapi\u002Fcomments",
"commentsBundleUrl":"https:\u002F\u002Fyastatic.net\u002Fs3\u002Fzen-lib\u002F37.0.3\u002Fcomments\u002Fcomments.chromium.ru.bundle.js",
"zenlibloaderBundleUrl":"https:\u002F\u002Fyastatic.net\u002Fs3\u002Fzen-lib\u002F2.163.2\u002Floader\u002Floader.legacy.morda-bundle.js",
"zenlibClid":560,"zenlibThemeClid":561,"
zenlibMobileClid":562,"rezenModalLibClid":429,"
rezenModalLibHostUrl":"https:\u002F\u002Fzen.yandex.ru\u002F",
"rezenModalLibStaticHostUrl":"https:\u002F\u002Fyastatic.net\u002Fs3\u002Fzen-lib\u002F","adNativeEnabled":true,"
yandexMarketWidgetEnabled":false,"articleBulkStatEnabled":false,"
karmaFlightMinValidCoverage":10000,"karmaFlightMaxValidCoverage":10000000,"
yandexMarketDefaultClid":"2310490","yandexMarketDefaultThemeId":"4",
"initialCommentariesNumber":3,"
yaBroStripeExp":"yabro_distribution_strip:group_control",
"abCoverEnabled":false,"showFlightMinValidCoverage":125000,"
showFlightMaxValidCoverage":100000000,"showFlightCPM":200,"
draftShareEnabled":false,"scriptNotExecutedLogDelay":300000,"
delayedPublicationEnabled":true,"sideBlockEnabled":false,"
allowZenappArticleFeed":false,"
publishersDesktopDomain":"zen.yandex.ru",
"publishersMobileDomain":"m.zen.yandex.ru",
"multiflightEnabled":true,"postCreationEnabled":true,"
mobileEditorEnabled":true,
"profileLinksEnabled":false,"
scrollToSiteMessage":"Листая дальше, вы перейдете на
страницу","needNewLogo":true,"
promoCodesEnabled":true,"adAgencyEnabled":false}
</script>
Отдельно выделю
commentsEnabled":true,"
commentsApiUrl":"\u002Fapi\u002Fcomments",
"commentsBundleUrl":"https:\u002F\u002Fyastatic.net\u002Fs3\u002Fzen-lib\u002F37.0.3\u002Fcomments\u002Fcomments.chromium.ru.bundle.js