Changes made to get_tweet.py :
-updated get_tweet() so that it returns a random tweet each time it is called from within a loop. Before that it returned the same tweet if called from another script.
Changes made to generateImage.py :
-it now takes a random tweet from get_tweet.py and adds it on the images.
-default x and y co-ordinates changed so that the tweet appears in center of the image.
-could be imported into another script and used to generate an array of images via the "run(x)" function which generates x images with random tweets.
Changes made to tweet.py:
-The program uploads an image instead of the tweet. Another parameter could be passed to upload image WITH a tweet.
NOTE: It assumes that the generated images have the naming convention "post_{no}.png" and are all located in the same directory as the tweet.py file. It also assumes that there exists atleast 1 image with the above mentioned naming convention in the directory. If not, the script will enter an infinite loop when get_img_random() is called.
Solves #90
Changes made to get_tweet.py : -updated get_tweet() so that it returns a random tweet each time it is called from within a loop. Before that it returned the same tweet if called from another script.
Changes made to generateImage.py : -it now takes a random tweet from get_tweet.py and adds it on the images. -default x and y co-ordinates changed so that the tweet appears in center of the image. -could be imported into another script and used to generate an array of images via the "run(x)" function which generates x images with random tweets.
Changes made to tweet.py: -The program uploads an image instead of the tweet. Another parameter could be passed to upload image WITH a tweet.
NOTE: It assumes that the generated images have the naming convention "post_{no}.png" and are all located in the same directory as the tweet.py file. It also assumes that there exists atleast 1 image with the above mentioned naming convention in the directory. If not, the script will enter an infinite loop when get_img_random() is called.