蘑菇釘.py是一款蘑菇釘簽到定位更改工具,蘑菇釘簽到,如果自己有服務(wù)器的話就把程序保存正在服務(wù)器上在設(shè)一個計劃任務(wù)就能每天自動簽到了,另外有封裝好的exe程序64位系統(tǒng)可以直接跑起來。
代碼說明
import requests
import json
from tkinter import *
from requests.packages.urllib3.exceptions import InsecureRequestWarning
requests.packages.urllib3.disable_warnings(InsecureRequestWarning)#去掉ssl煩人的警告
def log():
phone=input("賬號:")
password=input("密碼:")
headers = {
"Accept-Language": "zh-CN,zh;q=0.8",
"User-Agent": "Mozilla/5.0 (Linux; U; Android 8.0.0; zh-cn; MI 6 Build/OPR1.170623.027) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30",
"Authorization": "",
"roleKey": "",
"Content-Type": "application/json; charset=UTF-8",
"Content-Length": "85",
"Host": "api.moguding.net:9000",
"Connection": "close",
"Accept-Encoding": "gzip, deflate",
"Cache-Control": "no-cache",
}
url="https://api.moguding.net:9000/session/user/v1/login"
pyload={"password":password,"phone":phone,"loginType":"android","uuid":""}
response = requests.post(url,data=json.dumps(pyload),headers=headers,verify=False).text
response = json.loads(response)
Authorization = response["data"]["token"]
return Authorization #這個就相當(dāng)你開門的鑰匙
def sin(Authorization):
country=input("你想在的國家:")
address=input("你想在的地址:")
province=input("你想在的地址:")
city=input("你想在的城市:")
description=input("發(fā)表的內(nèi)容:")
url2="https://api.moguding.net:9000/attendence/clock/v1/save"
headers2 = {
"Accept-Language": "zh-CN,zh;q=0.8",
"User-Agent": "Mozilla/5.0 (Linux; U; Android 8.0.0; zh-cn; MI 6 Build/OPR1.170623.027) AppleWebKit/534.30 (KHTML, like Gecko) Version/4.0 Mobile Safari/534.30",
"Authorization":Authorization, #發(fā)送數(shù)據(jù)給蘑菇釘需要登陸時候給你的鑰匙
"roleKey": "student",
"Content-Type": "application/json; charset=UTF-8",
"Content-Length": "500",
"Host": "api.moguding.net:9000",
"Connection": "close",
"Accept-Encoding": "gzip, deflate",
"Cache-Control": "no-cache",
}
#下面改改就能達(dá)到你想在什么地方就在什么地方,經(jīng)緯度蘑菇釘會根據(jù)地理位置識別
data={"country":country, #國家
"address":address, #地址
"province":"伊拉克", #省
"city":"伊拉克", #城市
"latitude":"24.341287" ,#緯度
"description":"python測試",#發(fā)表的信息
"planId":"d38941d155bbef5c8d381897b61e280c",
"type":"END",
"device":"Android",
"longitude":"109.42808"#經(jīng)度
}
response2 = requests.post(url2,data=json.dumps(data),headers=headers2,verify=False).text
response2 = json.loads(response2)
print(response2)
if __name__=='__main__':
Authorization=log()
sin(Authorization)
其他說明
源自內(nèi)核級技術(shù)、不占內(nèi)存,快速穩(wěn)定!微商、娛樂、游戲用戶必備神器!