parent
10ef9293b6
commit
228c078087
1 changed files with 3 additions and 3 deletions
6
login.py
6
login.py
|
@ -13,7 +13,7 @@ if __name__ == "__main__":
|
|||
elif not os.path.exists("accounts"):
|
||||
os.mkdir("accounts")
|
||||
|
||||
Mastodon.create_app(name, to_file=f"accounts/{username}.client.secret", api_base_url=url, user_agent="fedifeeds")
|
||||
Mastodon.create_app(name, scopes=["read:accounts", "write:statuses"], to_file=f"accounts/{username}.client.secret", api_base_url=url, user_agent="fedifeeds")
|
||||
masto = Mastodon(f"accounts/{username}.client.secret")
|
||||
print(masto.auth_request_url())
|
||||
masto.log_in(username, code=input("code: "), to_file=f"accounts/{username}.secret")
|
||||
print(masto.auth_request_url(scopes=["read:accounts", "write:statuses"]))
|
||||
masto.log_in(username, code=input("code: "), scopes=["read:accounts", "write:statuses"], to_file=f"accounts/{username}.secret")
|
||||
|
|
Loading…
Reference in a new issue