makesuseofMastodon.py,tweepy,pixivpyandpybooru
$pythonbot.py-husage:bot.py[-h][-cFILE][-a][-p][-v]simplescheduledimagebotforyourmastodoninstanceoptionalarguments:-h,--helpshowthishelpmessageandexit-cFILE,--configFILEspecifyconfigfile-a,--addaddimagestodatabase-p,--postposttoot-v,--verboseincreaseoutputverbositySetupinstalltherequirements.txtpipinstall-rrequirements.txtcopyconfig.example.jsontoconfig.jsonandeditittofityourconfigurationaddimagestoyourdbwithpythonbot.py--configconfig.json--addandjustfollowtheinstructionsonscreenormanuallyeditedthejsonfileWhenyourfinishedstartthebotwithpythonbot.py-cconfig.jsonAcquiringtokensTogetclient_secret,client_idandaccess_tokenyouneedtocreateanapplicationatyourmastodoninstance.Youcaneither:
startpythoncreate_app.pyandfollowtheinstructions
orfollowthisguide:https://gist.github.com/aparrish/661fca5ce7b4882a8c6823db12d42d26
评论