Giter VIP home page Giter VIP logo

dailypaper's Introduction

DailyPaper

日报生成器
必备环境:
Python 3.7.3+
使用前请使用命令安装package
cd 程序所在目录
pip install -r requirement.txt

使用注意:
使用前请务必修改相应的参数
邮箱类:user、password、host、port、MailToList

接口的key:
请自行前往https://www.tianapi.com/apiview/26 注册,请替换26为后续数字
申请后,注册接口ID为 26 72 117
完成后,在个人中心会得到APIKEY ,配置文件的Key中
城市:默认为上海,请修改成你需要的城市
修改运行参数后,运行

使用方法:
目前提供的方法如下:
ImageDailyPaper(): 生成图片格式的日报,默认返回图片路径
TextDailyPaper(): 生成文本格式的日报,默认返回日报文本
MailDailyPaper(): 将文本以邮件内容,图片为附件的形式发布邮件
ClipBoardDailyPaper(): 将文本日报复制到剪贴板

更新日志:
V2.0 2020年1月10日18:16:35
1、重构DailyPaper,剥离常用配置文件
2、支持生成图片日志
3、支持生成文本日志
4、支持发送邮件
5、新增重试机制,遇到网络错误时发起重试
6、新增日志功能,错误信息一览无余

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.