Coder Social home page Coder Social logo

Comments (4)

riptl avatar riptl commented on August 22, 2024

Interesting, YouTube must have changed their API. I'll take a look at it.

from ytpriv.

riptl avatar riptl commented on August 22, 2024

@adsad213 Sorry for the delay, but this is fixed in 1.0.0! https://github.com/terorie/ytwrk/releases/tag/v1.0.0

I've verified that subcomments get scraped with the video you've linked.
I now get 10 pages of sub-comments on the first comment thread (used to be 1).

./ytwrk video comments e9dZQelULDk --sort=top -c1 >/dev/null

INFO[0000] Start video                                   video_id=e9dZQelULDk
INFO[0001] Page                                          index=-1 video_id=e9dZQelULDk
INFO[0001] Page                                          index=0 video_id=e9dZQelULDk
INFO[0001] Sub page                                      index=1 parent_id=Ugx3Zffzf5edwiRain94AaABAg sub_index=0 video_id=e9dZQelULDk
INFO[0002] Sub page                                      index=1 parent_id=Ugx3Zffzf5edwiRain94AaABAg sub_index=1 video_id=e9dZQelULDk
INFO[0002] Sub page                                      index=1 parent_id=Ugx3Zffzf5edwiRain94AaABAg sub_index=2 video_id=e9dZQelULDk
INFO[0003] Sub page                                      index=1 parent_id=Ugx3Zffzf5edwiRain94AaABAg sub_index=3 video_id=e9dZQelULDk
INFO[0004] Sub page                                      index=1 parent_id=Ugx3Zffzf5edwiRain94AaABAg sub_index=4 video_id=e9dZQelULDk
INFO[0004] Sub page                                      index=1 parent_id=Ugx3Zffzf5edwiRain94AaABAg sub_index=5 video_id=e9dZQelULDk
INFO[0005] Sub page                                      index=1 parent_id=Ugx3Zffzf5edwiRain94AaABAg sub_index=6 video_id=e9dZQelULDk
INFO[0005] Sub page                                      index=1 parent_id=Ugx3Zffzf5edwiRain94AaABAg sub_index=7 video_id=e9dZQelULDk
INFO[0006] Sub page                                      index=1 parent_id=Ugx3Zffzf5edwiRain94AaABAg sub_index=8 video_id=e9dZQelULDk
INFO[0006] Sub page                                      index=1 parent_id=Ugx3Zffzf5edwiRain94AaABAg sub_index=9 video_id=e9dZQelULDk
INFO[0007] Sub page                                      index=1 parent_id=Ugx3Zffzf5edwiRain94AaABAg sub_index=10 video_id=e9dZQelULDk
INFO[0007] Sub page                                      index=1 parent_id=Ugx8ndkeMmG8LLc0WKp4AaABAg sub_index=0 video_id=e9dZQelULDk
INFO[0007] Sub page                                      index=1 parent_id=Ugx8ndkeMmG8LLc0WKp4AaABAg sub_index=1 video_id=e9dZQelULDk

from ytpriv.

adsad213 avatar adsad213 commented on August 22, 2024

Are 10 pages the limit? With the API I'm able to get all the sub-comments in a comment thread. Thanks for your effort!

from ytpriv.

riptl avatar riptl commented on August 22, 2024

@adsad213 The scraper fakes using youtube.com as on desktop. I am pretty sure you can get more than 10 pages if you click "show more replies" in the app. Thus, I don't think the scraper has a limit of subcomments. It's best to test manually.

from ytpriv.

Related Issues (11)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.