Sid72020123 / scratchconnect

Python Library to connect Scratch API and much more.
https://sid72020123.github.io/scratchconnect/
MIT License
26 stars 14 forks source link

Get user comments #10

Closed Quantum-Codes closed 3 years ago

Quantum-Codes commented 3 years ago

https://github.com/Sid72020123/scratchconnect/discussions/6#discussioncomment-1011901

Just to put this in To-Do list lol

Sid72020123 commented 3 years ago

Should the title be get user and studio comments?

Sid72020123 commented 3 years ago

I cannot find the API of the user and studio comments.

Quantum-Codes commented 3 years ago

Oops :P I will try finding... I know its possible tho

Sid72020123 commented 3 years ago

I found out how to get studio comments but not of user :( Now I am going to update it on holidays because by exams are coming soon!

Sid72020123 commented 3 years ago

I made a new update to get studio comments! No only user is remaining.

Quantum-Codes commented 3 years ago

Ok, my exams are gonna get over! The I will try finding the API. Can u give me the studio comment and project comment api links? That will help a lot

If I get inbanned, then also it will help. I will try to find

Quantum-Codes commented 3 years ago

I GOT SOMETHING!!!! https://scratch.mit.edu/site-api/comments/user/Ankit_Anmol/?page=1

Quantum-Codes commented 3 years ago

Is that good? Isk if u can do anything for that with python though

Quantum-Codes commented 3 years ago

I got something else... it diesnt work for me but everyone says it does https://scratch.mit.edu/api/v1/user/griffpatch/?format=json

Sid72020123 commented 3 years ago

I GOT SOMETHING!!!! https://scratch.mit.edu/site-api/comments/user/Ankit_Anmol/?page=1

I know that API but I can't fetch the data and it will take some time which will make the library slow.

Sid72020123 commented 3 years ago

I got something else... it diesnt work for me but everyone says it does https://scratch.mit.edu/api/v1/user/griffpatch/?format=json I will ty this.

Sid72020123 commented 3 years ago

I is not working even if I gave the headers :(

Quantum-Codes commented 3 years ago

:(

Sid72020123 commented 3 years ago

Do you want to make a Scratch Username bot using this library? I haven't got any API to get user comments but you can see the comments in the Messages such as user.get_messages()

Quantum-Codes commented 3 years ago

What username bot?

Sid72020123 commented 3 years ago

A bot that follows your action when you comment on it's profile. Such as 'follow me' to follow you.

Sid72020123 commented 3 years ago

I haven't found any comments API yet. :(

Quantum-Codes commented 3 years ago

But I'm blocked on scratch. I can't do that :(

Quantum-Codes commented 3 years ago

Can u give projects/studios API? should be related

Sid72020123 commented 3 years ago

For project: https://api.scratch.mit.edu/users/Sid72020123/projects/1/comments/ For studio: https://api.scratch.mit.edu/studios/1/comments/ I checked they are not related to user comments.

Quantum-Codes commented 3 years ago

Oh

Quantum-Codes commented 3 years ago

I'm trying to make my own api... I am able to get "parent comments" in python but I need to also get the replies.. Also need to convert them to dictionary Also.... aghhh I only gave the first page data

I am reading this data from scratch HTML code.... so hard

Quantum-Codes commented 3 years ago

https://github.com/Quantum-Codes/Profile-comments-API what u need in API? make issue there.

Sid72020123 commented 3 years ago

I too was working on that! I have almost finished it but a little is remaining!

Quantum-Codes commented 3 years ago

@Sid72020123 gimme the link

Sid72020123 commented 3 years ago

Fixed this issue! Thanks to @Quantum-Codes