Skip to content
This repository was archived by the owner on Aug 29, 2024. It is now read-only.

Smit2553/TwitterWeatherBot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Random City Twitter Bot

This bot posts hourly on https://twitter.com/RCityWeather

To help develop kindly make a Pull Request.

This twitter bot picks a random city from around the globe every hour and posts its weather information as a tweet.

To install this repo locally run the following commands:

git clone https://github.com/Smit2553/TwitterWeatherBot.git

cd TwitterWeatherBot

pip install -r requirements.txt

Go to https://openweathermap.org/ and create an API key.

Create a Twitter Developer account at https://developer.twitter.com

Create a .env file in the TwitterWeatherBot directory with the following keys:

WEATHERAPI=
CONSUMERKEY=
CONSUMERSECRET=
ACCESSTOKEN=
ACCESSTOKENSECRET=

Finally, you can run:

python3 main.py

About

This is a Twitter bot that shares weather data for a random city every hour.

Resources

License

Stars

2 stars

Watchers

1 watching

Forks

Contributors

Languages