The full source code is here: https://github.com/geometalab/Trending-Places-in-OpenStreetMap
If you want the twitter bot to Tweet a status, register as a developer on twitter and obtain the 4 keys to authenticate your twitter bot. The four variables required are mentioned in the sample config file.
These need to be set as environment variables system and/or in your docker container.
Example: (You need to repeat this for all four or directly input it in the docker container with -e)
To run the main program:
docker run -e CONSUMER_KEY -e CONSUMER_SECRET -e ACCESS_TOKEN -e ACCESS_TOKEN_SECRET geometalab/trendingplaces ./main.sh
To set it up with a cron job that executes once every day:
docker run -e CONSUMER_KEY -e CONSUMER_SECRET -e ACCESS_TOKEN -e ACCESS_TOKEN_SECRET geometalab/trendingplaces