-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.py
108 lines (93 loc) · 2.4 KB
/
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
from ScraGet import ScraGet
import time
comment = ScraGet.studio_extras()
comment.get_projects(30909939)
print(comment.project_count,comment.projects_response_objects)
user = ScraGet.user_extras()
user.get_projects("meetcomm_uwu") #this user had accurately 40 projects lol
print(len(user.projects),"\n",user.projects_response_objects)
user.get_followers("meetcomm_uwu")
print(user.follower_count,user.followers_response_objects)
"""
for I in ("me","you","h","hajajsjska","?!"):
user.check_user(I)
print(user.username,
user.valid,
user.taken)
"""
"""
user = ScraGet.get_user()
user.updateScratch(100)
print(user.updateScratch.__annotations__)
print(user.id)
"""
"""
project = ScraGet.get_cloud_data()
project.updateCloud("612229554",200)
print(len(project.cloud_data))
"""
"""
cloud = ScraGet.cloud()
#542800922
#https://scratch.mit.edu/projects/612229554/
@cloud.scan(ID="612229554",delay=1,NewThread=False)
def hello(change):
print(change.user)
cloud.stop = True
#print(cloud.thread.is_alive())
print("----------------------")
"""
"""
Frontpage = ScraGet.get_frontpage()
self = ScraGet.get_frontpage()
self.updateScratch()
print(self.updateScratch.__doc__)
print(self.top_remixed[1]["thumbnail_url"], self.response_time)
print(self.response_object)
#self.design_studio
#self.curated_projects
#self.featured_studios
#self.top_loved
#self.featured_projects
"""
"""
#from ScraGet import ScraGet #import package
studios = ScraGet.get_studio() #create object
studios.updateScratch(2830734) #update data
print(studios.host_id) #print required info from data*
"""
"""
data = ["hello"]
#from ScraGet import ScraGet
cloud = ScraGet.encoder()
print(cloud.encode(data))
print(cloud.decode("05"))
lol = ScraGet.get_studio()
lol.updateScratch(208695)
print(lol.title)
"""
"""
user = ScraGet.get_user_extra()
user.get_profile("griffpatch_tutor")
print(user.label_name,user.profile_status_code,"\n",
user.featured_project_data,
user.featured_project_id,
user.featured_project_label_id,
user.creator,
user.creator_id,
user.change_time,
user.title,
user.thumbnail,
user.pfp,
user.id)
user.get_followers("Ankit_Anmol")
print(user.follower_count)
"""
"""
project = ScraGet.get_project()
project.updateScratch(476678019)
print(project.images,"\n",project.id)
forum = ScraGet.get_post()
forum.updateScratchDB(537944)
print(forum.id,forum.username,forum.updateScratchDB.__doc__)
"""