Skip to content

Instantly share code, notes, and snippets.

View Sid72020123's full-sized avatar
💻
Coding!

Siddhesh Chavan Sid72020123

💻
Coding!
View GitHub Profile
@Sid72020123
Sid72020123 / main.py
Created May 27, 2023 13:05
The Python program that fetched the activity of a Scratch user
from requests import get
from bs4 import BeautifulSoup
from pprint import pprint
Scratch_URL = "https://scratch.mit.edu"
def get_activity_type(raw_activity_type):
activities = {
"added": "studio-add",
@Sid72020123
Sid72020123 / studio.py
Last active October 3, 2021 10:15
Python Program to automatically Invite a user's Followers to a studio
import time
import scratchconnect
user = scratchconnect.ScratchConnect("Username", "Password")
all_followers = user.followers(all=True)
invited_followers = []
for i in range(0, len(all_followers)):
processing = all_followers[i]
for j in range(0, len(processing)):