you can pick out the exact frame where her heart breaks

This commit is contained in:
Lynne Megido 2018-11-02 01:17:02 +10:00
parent 738e90ecb3
commit 7d0aa37116
Signed by: lynnesbian
GPG key ID: FB7B970303ACE499
2 changed files with 12 additions and 3 deletions

View file

@ -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")

View file

@ -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