Discuss Scratch

han614698
Scratcher
1000+ posts

comment api

Would there be a way to get the number of comments that someone has posted with js using the api?

<Scratch Wikian | Forum Helper | 6000+ Posts>

Credit to -gge for the icons in my signature | I condensed all this code into five lines using [p] tags, idk why




gdpr5b78aa4361827f5c2a08d700
Scratcher
1000+ posts

comment api

no.
han614698
Scratcher
1000+ posts

comment api

potatophant wrote:

no.
Why? Then how does magnifier GET the comments, but can’t count them?

<Scratch Wikian | Forum Helper | 6000+ Posts>

Credit to -gge for the icons in my signature | I condensed all this code into five lines using [p] tags, idk why




gdpr5b78aa4361827f5c2a08d700
Scratcher
1000+ posts

comment api

han614698 wrote:

potatophant wrote:

no.
Why? Then how does magnifier GET the comments, but can’t count them?
it gets the first page of comments from the project/user/studio that you ask for, then gets second page when you load more, etc
Chiroyce
Scratcher
1000+ posts

comment api

han614698 wrote:

using the api?
The API that shows how many comments you've posted on Scratch either doesn't exist, or is private so that only admins can access it.

han614698 wrote:

Then how does magnifier GET the comments, but can’t count them?
Magnifier crawls through the entirety of Scratch, finding and saving the comment and username onto Magnifier's database. The same way how ScratchDB indexes posts on the forums, since there is no official API.







April Fools' topics:
New Buildings in Scratch's headquarters
Give every Scratcher an M1 MacBook Air
Scratch should let users edit other Scratchers' projects
Make a statue for Jeffalo
Scratch Tech Tips™
Make a Chiroyce statue emoji


<img src=“x” onerror=“alert('XSS vulnerability discovered')”>

this is a test sentence
gdpr5b78aa4361827f5c2a08d700
Scratcher
1000+ posts

comment api

Chiroyce wrote:

Magnifier crawls through the entirety of Scratch, finding and saving the comment and username onto Magnifier's database. The same way how ScratchDB indexes posts on the forums, since there is no official API.
no it doesnt

i have a separate program that does that but usually when you view a page it just fetches is
imfh
Scratcher
1000+ posts

comment api

No one except for the Scratch Team has every comment ever made stored, and the Scratch Team also doesn't provide an API to get every comment made by a user.

The only way to find out how many comments someone has made is to count them all. However, you can't count all of someone's comments unless you have all of their comments. The only people which have all of the comments is the Scratch Team, and the Scratch Team doesn't provide an API for that.

Last edited by imfh (Sept. 13, 2021 16:43:11)


Scratch to Pygame converter: https://scratch.mit.edu/discuss/topic/600562/

Powered by DjangoBB