python足球_一个Python程序,当您支持的足球队得分时向您发送短信

footballNotifier

A Python application that sends you a SMS when the football team you support scores.

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Download and install Python 3.6.

Clone this repository.

Open the terminal, navigate to the folder where your clone of this repository is located and type:

$ pip install -r requirements.txt

This will install all the necessary packages to run this script.

Open config.ini.

4.1. Add in your NUMBER and TEAM (e.g: Portugal, Sweden, Real Madrid)

4.2. Go to Textlocal, register an account and then create an API_KEY here. Copy the API_KEY key and fill it in config.ini accordingly.

Type $ python app.py in the terminal and the script will run for as long as you let it.

Textlocal has a limit of 10 messages per month, so let's hope your team doesn't score more than 10 goals per month!

If you follow these steps, you will receive a message on your phone when your team scores, as seen below: baa801367190ee29a3844c6c657b9d8a.png

To-Do

Add support for multiple teams.

Deploy the project on GitHub pages and allow more people to use this without having to install Python on their machine.

Probably re-do a lot of the code. I'm sure there are a lot of things I can optimize. I appreciate any PRs! :)

Thanks for checking the project!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值