Coder Social home page Coder Social logo

meican's Introduction

INTRO

美餐自动订餐,完善了一下 hui-z 的逻辑

运行图

  • 在截止订餐时间前多少分钟自动订餐
  • 如果有快捷订餐则进行快捷订餐,否则选择第一家可定餐厅定餐.
  • 订餐区分配菜和主食(大于企业设定总价十分之六的判定为主食)

运行

  • start.bat :运行
  • gen_startup.bat :加入开机运行

配置

配置在cfg/config.conf目录下

#关闭订餐前多少分开始自动订餐
ahead_min = 10
#周几订餐1-7代表周一到周日
order_week = 1,2,3,4,5
#是否订同事常订的餐 true,false
other_recommend = false
#忽略的菜品关键字
ignore_dish = 韩国泡菜,烧鸭

开发

pip install -r requirements.txt

需知

为了在其他电脑上也可以运行,我把python环镜便携安装到了项目目录重命令为py,python的便携安装很简单,只要在安装时选择Install just for me 就会把dll等依赖也安装在python目录下

build.bat

  • 需先便携化python在本项目重命名为py
  • 依赖7z压缩

meican's People

Contributors

wujiyu115 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

meican's Issues

现在不能用了吗?

2018-01-22 10:21:24,529,INFO,meican | init | has cookies:
Traceback (most recent call last):
File "main.py", line 64, in
login_ok = meican.login()
File "E:\meican-master\src\meican.py", line 89, in login
show_info = self.account_show_info()
File "E:\meican-master\src\meican.py", line 117, in account_show_info
usr_info = json.loads(self.get(account_show_url()).content)
File "C:\Python27\lib\json_init_.py", line 339, in loads
return _default_decoder.decode(s)
File "C:\Python27\lib\json\decoder.py", line 364, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Python27\lib\json\decoder.py", line 382, in raw_decode
raise ValueError("No JSON object could be decoded")
ValueError: No JSON object could be decoded

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.