Tellonym to instagram post
This python module makes images from Tellonym 'tells' and automatically uploads the to your Google Drive.
Installation
Dependencies
In order to run this module you will need:
- Pillow
- requests
- Google Drive API (Google Client Library)
- tellonym-python (included)
Installing dependencies
Using pip:
$ pip install -r requirements.txt
Using pipenv:
$ pipenv sync
Downloading module
Go to the releases page, download the newest version and extract it into folder of your choice
Configuration
You can change the default bg.jpg
background file to any other image/jpeg
file you want.
If you want the files no to be uploaded to the main directory of your Google Drive, you need to specify the folder ID
in the drive.txt
file.
More on how to find folder ID here
If you don't want to upload your images to the cloud you can disable this function by writing False
inside of the drive.txt
file.
You can change the font to any TrueType or OpenType font of your choice by either changing its file name to Lato.ttf
or changing the font
property inside run.py
file.
Usage
To initialize the module you need define the class:
from run import TellonymPost as TP
tellpost = TP(creds, interval, fontcol, rectcol, padding, d)
The __init__
function have 6 parameters:
Parameter | Description | Type | Default value | Optional |
---|---|---|---|---|
creds |
Tellonym credentials | tuple[str, str] |
None |
No |
interval |
Interval for checking on new tells (in minutes). | int |
10 |
Yes |
fontcol |
Font color as 24 bit RGB value. | tuple[int, int, int] |
(255, 255, 255) |
Yes |
rectcol |
Textbox BG color as 24 bit RGB value. | tuple[int, int, int] |
(0, 0, 0) |
Yes |
padding |
Padding of the text inside the textbox (in pixels). | int |
10 |
Yes |
d |
Debug mode | bool |
False |
Yes |
To start the automation you need to call a function:
from run import TellonymPost as TP
tellpost = TP(creds, interval, fontcol, rectcol, padding)
tellpost.run()
Now the function will start checking tells, generating images, and sending them to your Google Drive.
Copyright and Credits
Credit to Logxn for his tellonym-python API.
More about license concerning this module inside the LICENSE
file.