🌟 Github Action과 시스템 올 그린! 발진 준비완료!
This commit is contained in:
parent
2ba9b8ee32
commit
3a888af951
5 changed files with 53 additions and 7 deletions
|
|
@ -9,10 +9,15 @@ with open('./config.json') as json_file:
|
|||
json_data = json.load(json_file)
|
||||
|
||||
ROOT = json_data['ROOT']
|
||||
INSTAGRAM_AUTH = [json_data['INSTAGRAM_ID'], json_data['INSTAGRAM_PASSWORD']]
|
||||
INSTAGRAM_AUTH = [json_data['INSTAGRAM_ID'], json_data['INSTAGRAM_PASSWORD'], json_data['INSTAGRAM_TOTP']]
|
||||
|
||||
|
||||
cl = Client()
|
||||
cl.login(INSTAGRAM_AUTH[0], INSTAGRAM_AUTH[1])
|
||||
code = cl.totp_generate_code(INSTAGRAM_AUTH[2])
|
||||
cl.login(INSTAGRAM_AUTH[0], INSTAGRAM_AUTH[1], verification_code=code)
|
||||
cl.set_timzone_offset(9 * 60 * 60)
|
||||
cl.set_user_agent('Instagram 361.0.0.46.88 Android (35/15; 394dpi; 1084x2412; Nothing; A065; Pong; qcom; ko_KR_#u-fw-sun-mu-celsius; 674675147)')
|
||||
cl.get_settings()
|
||||
|
||||
json.dump(
|
||||
cl.get_settings(),
|
||||
|
|
|
|||
|
|
@ -43,8 +43,9 @@ def 급식_칼로리_얻기(MLSV_YMD:str):
|
|||
|
||||
|
||||
def 얻기(MLSV_YMD:str):
|
||||
print("집가고싶다발동")
|
||||
급식 = 급식_정보_얻기(MLSV_YMD)
|
||||
print(f"{ROOT}library/skeleton.png")
|
||||
# print(f"{ROOT}library/skeleton.png")
|
||||
사진 = Image.open(f"{ROOT}library/skeleton.png")
|
||||
|
||||
#if vts.get_vts_true_or_false() == True: 사진 = Image.open(f'{ROOT}library/skeleton-vts.png')
|
||||
|
|
@ -65,6 +66,7 @@ def 얻기(MLSV_YMD:str):
|
|||
print("🍲 | Meal Info Image Saved")
|
||||
|
||||
def 스토리_얻기(MLSV_YMD:str):
|
||||
print("이건 왜?")
|
||||
# 1:1 to 9:16 temp/{MLSV_YMD}.png
|
||||
|
||||
사진 = Image.open(f"{ROOT}temp/{MLSV_YMD}.png")
|
||||
|
|
@ -112,4 +114,4 @@ def 디스코드(MLSV_YMD:str):
|
|||
except requests.exceptions.HTTPError as err:
|
||||
print(err)
|
||||
else:
|
||||
print(f"✨ | Payload successfully, code {result.status_code}.")
|
||||
print(f"✨ | Payload successfully, code {result.status_code}.")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue