Skip to content

bananemo/weather-report-chatbot

Repository files navigation

My weather report chatbot

by Charles Chen

FSM Diagram

Bonus Feature

1. Web crawing

Import beautiful4 extention to crawing 中央氣象局 website, and get temperature and raining probability of each city.

reference

爬蟲新手 https://cuiqingcai.com/1319.html http://blog.castman.net/%E6%95%99%E5%AD%B8/2016/12/22/python-data-science-tutorial-3.html

2. web driver

Use chrome driver to get elements which can't directly parse by beautifulsoup4. Since those elements are triggered by javascript.

3. deploy on heroku

Depoly on heroku to not just run on local

4. more messenger functionalities

a) quick reply message

b) button message

c) image message

5. creative design

sweet reminds and cute picture(長輩圖)

How to run and interact which my chatbot

1. input "hi" ot "hello" to call my chatbot, it will ask which region are you in.

2. choose your region(by quick reply), then chatbot will ask which city are you in.

3 after type in your city, chatbot will ask if you want to know the data of temperature or raining probability.

4.1 after choosing temperature, chatbot will reply today's temperature and sweet reminds.

4.2 after choosing raining probability, chatbot will reply today's raining probability and sweet reminds.

5 after getting imformation, user have three options

1) continue to search another climate information(go back to step 4)

2) search climate information of another city(go back to state 2)

3) leave chat bot(go to step 6)

6 leave chatbot, byebye!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages