Giter VIP home page Giter VIP logo

robfooddd's Introduction

robFoodDD

上海疫情买菜难,该脚本可帮助自动化抢购,接口调用存在封号风险,若非实在缺菜不建议使用!

该项目为本人第一个Golang项目,主要目的为学习语法与规范,如有代码相关问题欢迎讨论指导!

另外由于时间仓促,一些容错逻辑较为粗糙,结账商品数据未完整分析,可能存在部分类型商品无法结账的情况(如有发现可提issue),后续有时间的话可能会继续完善。

目前邮费数据默认为免邮,若已用过首单优惠请保持订单总额超过免邮门槛,否则无法正常下单!

合理使用(重要!!!!!)

疫情当下,大家都很不容易,这个项目的预设使用场景是白天运力补充时的捡漏,避免人工一直刷新影响日常生活和工作,所以希望不要在8:30前运行该项目,给其他早起守候的人一个公平的机会! 这也是代码中刷新间隔较长的原因之一。

此外,因为运力资源十分宝贵,希望在购物车中加入足够的商品,一次解决多天的需求,避免分批多次下单占用资源,如确实自家消耗能力有限,请发挥互帮互助精神,与邻里一起拼单,尤其是帮助那些有老人或一线抗疫人员的家庭!因此,虽然存在邮费时不能下单为一个bug,但也正好限制了小额订单,故暂时不会修复。

总而言之,合理使用,适可而止,祝大家都有菜吃,早日恢复正常生活!

使用方式

在main.go的main函数中修改该行代码

err := session.InitSession("DDXQSESSID=xxxxxxxxxxx", "xxxxxxxxxxxxx")

其中第一个参数为叮咚登录cookie,需要抓包获取,形式为"DDXQSESSID=xxxxxxxxxxx""

第二个参数为通知用的bark id,下载bark后从app界面获取

开始运行后按命令行提示操作即可。

声明

本项目仅供学习交流,严禁用作商业行为,特别禁止黄牛加价代抢等!

因违法违规等不当使用导致的后果与本人无关,如有任何问题可联系本人删除!

robfooddd's People

Contributors

lambda765 avatar

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.