Skip to content

A twitter bot that will go on a random walk each day using google maps API. (a fun side project)

Notifications You must be signed in to change notification settings

dlareau/dailywalkbot

Repository files navigation

DailyWalkBot

A Twitter bot that takes long, random walks through the world in real-time.

Installation

Dependencies are managed with pip. Install the necessary modules with:

pip install --user -r requirements.txt

Configuration

Copy the API keys template file to api_keys.py and insert your Twitter and Google API keys:

cp api_keys{_template,}.py
$EDITOR api_keys.py
# Insert API keys.

Several constants are defined at the top of daily_walk.py. In particular, set TWEET_ON = False to print to the console instead of tweeting to Twitter, and set SLEEP_ON = False to remove the "real-time" delays for testing purposes.

Invocation

Run the script with python daily_walk.py.

To run at regular intervals, append a line to your crontab. For example, to begin a walk at 10:00 daily,

(crontab -l ; echo "0 10 * * * python /full/path/to/daily_walk.py") | crontab -

About

A twitter bot that will go on a random walk each day using google maps API. (a fun side project)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published