Skip to content

hubacekjirka/dailyPhotoTwitterBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Welcome to Photo of the day twitter bot 👋

Twitter: hubacekjirka Master Build Status

A Twitter bot, posting a random photo from the predefined folder. Additional to the picture, it attempts to gather other image metadata from its EXIF data and image content recognition using TensorFlow. The metadata is introduced as hashtags for reaching a broader audience, because who doesn't like likes and hearts <3

Tweet example:

Install

git clone https://github.com/hubacekjirka/dailyPhotoTwitterBot.git
docker build ./app --tag hubacekjirka/photooftheday

For container debugging use Dockerfile_debug configuring debugpy and letting the script wait for debugger attachement:

docker build ./app --file ./app/Dockerfile_debug --tag hubacekjirka/photooftheday

Usage

Debugging

docker run -p 5678:5678 hubacekjirka/photooftheday

In VS, setup path mapping in launch.json (local and remoteRoot need to fit on each other, otherwise breakpoints get disabled):

"configurations": [
        {
            "name": "Python: Remote Attach",
            "type": "python",
            "request": "attach",
            "connect": {
                "host": "localhost",
                "port": 5678
            },
            "pathMappings": [
                {
                    "localRoot": "${workspaceFolder}/app/src",
                    "remoteRoot": "."
                }
            ]
        },

Without S3

Map Docker host photo folder to the guest (when not using S3)

docker run --volume /PathToThePhotoFolder/photos:/app/src/photos \
-it hubacekjirka/photooftheday

The bot expects the following folders in the '/PathToThePhotoFolder/photos' foder:

  • 'backlog' - photos to be posted
  • 'usedPhotos' - succesfully posted photo

Author

👤 jiri hubacek

Credits

Show your support

Give a ⭐️ if this project helped you!

📝 License

Copyright © 2019 jiri hubacek.
This project is MIT licensed.


This README was generated with ❤️ by readme-md-generator

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published