This is a Python script that posts a random image of Yamada Ryou from Gelbooru to Twitter every hour.
Before running the script, you will need to install some packages, please use pip i beg you:
pip install -r requirements.txt
To use the script, you will need to set up a .env
file containing your API keys and tokens for Gelbooru and Twitter. You can use the .env.sample
file as a template for your own .env
file.
Docs are in the config.ini
To change tags open config.ini and change tags
To exclude tags open config.ini and change exclude_tags
To run the script, simply run:
python memefolderbot.py
By default, the script posts a random image from Gelbooru to your Twitter account at regular intervals. You can adjust the interval by changing the value of time2post
in config.ini
This script is licensed under the MIT License.
Codeium: An AI-powered coding toolkit that includes Autocomplete and Search features that helped me overcome the challenges that were making me feel overwhelmed and suicidal while coding.
requests: A Python library for making HTTP requests. This library was used to download images from the internet.
Tweepy: A Python library for the Twitter API that made it easier to interact with Twitter's API.
pygelbooru: A Python wrapper for the Gelbooru API that made it easy to fetch random images from Gelbooru.