Skip to content

This robot will scrape information from the Internet and send processed information through WeChat

License

Notifications You must be signed in to change notification settings

ianforme/wechatrobot

Repository files navigation

WeChatBot

WeChatBot is a customized chat bot built on Python that acts as a WeChat personal assistant for Qiaoling

Demo

Snapshot

Introduction

As for now, she is able to

  • ask for weather
  • ask for news by topic from BBC and CNN
  • ask for bus arrival time
  • ask for news headlines
  • ask for jobs
  • ask for platts news

Dependencies

Installation & Setup

  • Clone the repo (and give it a star if you like it~)
  • Apply API keys from LTA DataMall, Open Weather Map, News API, URL shortener API
  • Sign up a jobstreet.com account
  • Key in your credentials to config file
  • Configure the user you want to respond to in the config file
  • Run main.py script
  • Scan the QR Code with your robot WeChat account

Example

Currently the robot is able to do the following:

  • returning weather condition when asked by '天气'
  • returning headline news from CNN and BBC when asked by '头条'
  • returning news about specific topics from CNN and BBC when asked by '新闻 topic1, topic2, .. ,topicX'
  • returning bus arrival time at speicfic bus stop when asked by '巴士 bus_stop_number, bus1.bus2.bus3 .. .busX'
  • returning 53, 45 and 53M bus arrival time at 63291 (for QL) when asked by '坐巴士'
  • returning bus arrival time at 55039 (at back door of NCS) when asked by '巴士ncs'
  • returning jobs from jobstreet.com and send email when asked by '工作 job1, job2, .. , jobX ^[email protected]'
  • returning news from Platts when asked by 'platts'

License

The software is under MIT License

Powered by NewsAPI.org

About

This robot will scrape information from the Internet and send processed information through WeChat

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages