you can pick out the exact frame where her heart breaks
This commit is contained in:
parent
738e90ecb3
commit
7d0aa37116
2 changed files with 12 additions and 3 deletions
13
login.py
13
login.py
|
@ -7,10 +7,19 @@
|
||||||
import requests, sqlite3, json, argparse
|
import requests, sqlite3, json, argparse
|
||||||
from mastodon import Mastodon
|
from mastodon import Mastodon
|
||||||
|
|
||||||
|
|
||||||
db = sqlite3.connect("database.db")
|
db = sqlite3.connect("database.db")
|
||||||
c = db.cursor()
|
c = db.cursor()
|
||||||
|
|
||||||
c.execute("CREATE TABLE IF NOT EXISTS `data` (username VARCHAR NOT NULL, secret VARCHAR NOT NULL, latest_post VARCHAR)")
|
c.execute("CREATE TABLE IF NOT EXISTS `data` (username VARCHAR NOT NULL, appid VARCHAR NOT NULL, appsecret VARCHAR NOT NULL, secret VARCHAR NOT NULL, latest_post VARCHAR)")
|
||||||
|
|
||||||
|
cfg = json.load(open("meta.json"))
|
||||||
|
|
||||||
|
instance_url = input("Instance URL: ")
|
||||||
|
print("Registering app...")
|
||||||
|
client_id, client_secret = Mastodon.create_app(cfg['name'],
|
||||||
|
api_base_url=instance_url,
|
||||||
|
scopes="write:statuses",
|
||||||
|
website="https://git.lynnesbian.space/lynnesbian/curious-greg")
|
||||||
|
|
||||||
|
|
||||||
|
|
2
main.py
2
main.py
|
@ -5,5 +5,5 @@
|
||||||
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
||||||
|
|
||||||
import requests, sqlite3, json
|
import requests, sqlite3, json
|
||||||
|
from mastodon import Mastodon
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue