Mettre à jour 'dlimage.py'
This commit is contained in:
parent
d70759f332
commit
5ee38d472c
16
dlimage.py
16
dlimage.py
|
@ -5,13 +5,7 @@
|
|||
from PIL import Image
|
||||
from io import BytesIO
|
||||
from mastodon import Mastodon
|
||||
import requests
|
||||
import os
|
||||
import sys
|
||||
import time
|
||||
import json
|
||||
import argparse
|
||||
import math
|
||||
import requests, os, sys, time, json, argparse, math
|
||||
|
||||
def get_parameter( parameter, file_path ):
|
||||
# Check if secrets file exists
|
||||
|
@ -58,14 +52,8 @@ mastodon = Mastodon(
|
|||
masto_allfav = mastodon.favourites(None, None, 40)
|
||||
while masto_allfav != []:
|
||||
for toot in masto_allfav:
|
||||
if toot.account.acct == "bonjourtoutlemonde@hostux.social":
|
||||
if toot.account.acct == "account@mastodon.tld":
|
||||
get_media()
|
||||
else :
|
||||
if toot.account.acct == "BonjourMadame@hostux.social":
|
||||
get_media()
|
||||
else :
|
||||
if toot.account.acct == "hato0517@mstdn.jp":
|
||||
get_media()
|
||||
masto_allfav = mastodon.fetch_next(masto_allfav)
|
||||
time.sleep(10)
|
||||
|
||||
|
|
Reference in New Issue