Untitled

 avatar
user_0623289
python
2 months ago
3.3 kB
5
Indexable
Never
import requests
import json

link = "http://aminoapps.com/p/USER-OF-COMMUNITY" 
ammount = 500



from pymino import Client 

from log import logg


client = Client(
    device_key="E7309ECC0953C6FA60005B2765F99DBBC965C8E9",
    signature_key="DFA5ED192DDA6E88A12FE12130DC6206B1251E44"
)
client2 = Client(
    device_key="E7309ECC0953C6FA60005B2765F99DBBC965C8E9",
    signature_key="DFA5ED192DDA6E88A12FE12130DC6206B1251E44"
)


id=client.fetch_object_info("uo1i5n7")

client2.login(secret="31 VhKVHeZo bc108cca-c755-4ccd-8308-5f56ae3772bc 61.0.100.129 c1c30a822cf86951fbcee26e18b4dfe623046d2c 1 1693740418 pyU7hYA6zK77W_lNHR99yVP42yg",use_cache=False)
client.login(secret="31 STfLpcJr 25663bd3-3688-4f73-a2ab-8548b0b0cd29 172.70.250.108 45005ab5a641140fb49908b71b973346ee287329 1 1704218664 mgbXIqp0JcspPz1a7EgNghHeeh8",use_cache=False)
client.set_community_id(id.comId)
client2.set_community_id(id.comId)
# ff=client.community.fetch_leaderboard(size=20,comId=id.comId)._data
# print(ff)
userlist=[]

def give(input_value):
    minutes= input_value//60
    return minutes // 60

def leaderboard():
    for i in range(4):
        start = i * 25
        size = (i + 1) * 25
        leaderboard_info = client.community.fetch_leaderboard(start=start,size=size,leaderboardType=1)._data
        for doc in leaderboard_info:
           
            if doc["activeTime"] <3300:
                return
            else:
                userlist.append({"name":doc["nickname"],"uid":doc["uid"],"how":give(doc["activeTime"])})
leaderboard()
print(userlist)

def save_text(text,name):
  headers = {
      'accept': 'application/json',
      'content-type': 'application/x-www-form-urlencoded',
  }

  params = {
      'Name': name,
      'Text': text,
  }

  res=requests.post('https://amaterasu.run-ap-south1.goorm.io/paste_text', params=params, headers=headers)
  print(res.status_code)
  print(res.json())
  return res.json()["url"]

mess=""

for users in userlist:
    print(users['name'])
    if users["uid"] !="109af7dc-6f05-480a-a2ac-ce32fbd136ce":
        total_coins = users["how"]*200
        print(total_coins)
        min_send = 100
        max_send = 400

        while total_coins > 0:
            sending_coins = min(total_coins, max_send)
                
            sending_coins = min_send * (sending_coins // min_send)
            print(sending_coins)
            client.community.add_influencer(users["uid"], sending_coins)
                
            client2.community.subscribe_influencer(users["uid"])
            
            total_coins -= sending_coins
            client.community.remove_influencer(users["uid"])
            print(f"\033[97;44mENVIADO {sending_coins} coins.\033[0m")
            

        mess +=f"\n\nName: {users['name']}\nTotal coins: {total_coins}"
        # wiki=client.community.fetch_user_wikis(userId=users["uid"],size=1).wikiId
        # if len(wiki) !=0:
        #     logg(wiki[0],users["how"])
        #     mess +=f"\n\nName: {users['name']}\nTotal coins: {users['how']*200}"
        # else:
        #     mess +=f"\n\nName: {users['name']}\nTotal coins: Wiki no found"

print(save_text(mess,"coins report"))
Leave a Comment