全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

CeraNetworks网络延迟测速工具IP归属甄别会员请立即修改密码
查看: 1939|回复: 7

斯巴达脚本

[复制链接]
发表于 2022-11-26 01:15:08 | 显示全部楼层 |阅读模式
再缝合一个,睡觉

这个需要
selenium+https://github.com/ultrafunkamsterdam/undetected-chromedriver

ubuntu桌面版或者mac可以跑,win没试过,英国不行

填好后自动抢,登陆可能触发验证点一下就行了,登陆之后,不能挂扶墙抢订单会无效
写死了一个code,BF2022-50不知道对不对
挂着睡觉,有货就自动抢,mac下面会有坤坤提示抢到了。
  不要脸了



  1. aW1wb3J0IHVuZGV0ZWN0ZWRfY2hyb21lZHJpdmVyIGFzIHVjCmZyb20gc2VsZW5pdW0ud2ViZHJpdmVyLmNvbW1vbi5ieSBpbXBvcnQgQnkKaW1wb3J0IHRpbWUKaW1wb3J0IGxvZ2dpbmcKaW1wb3J0IG9zCmxvZ2dpbmcuYmFzaWNDb25maWcoZm9ybWF0PSclKGFzY3RpbWUpcyAtICUobGV2ZWxuYW1lKXMgLSAlKG1lc3NhZ2UpcycsIGxldmVsPWxvZ2dpbmcuSU5GTykKCgphY2NvdW50ID0gJ+i0puaItycKcGFzc3dkID0gJ+WvhueggScKdnBzX2hvc3QgPSAnd3d3Lmdvb2dsZS5jb20nCmNvZGUgPSAnQkYyMDIyLTUwJwpjYXJ0ID0gJ2h0dHBzOi8vYmlsbGluZy5zcGFydGFuaG9zdC5uZXQvY2FydC5waHA/Z2lkPTI1Jwpsb2dpbl91cmwgPSAnaHR0cHM6Ly9iaWxsaW5nLnNwYXJ0YW5ob3N0Lm5ldC9jbGllbnRhcmVhLnBocCcKCnRpbWVvdXQgPSA2MAoKYnJvd3NlciA9IHVjLkNocm9tZSgpCmJyb3dzZXIuc2V0X3BhZ2VfbG9hZF90aW1lb3V0KHRpbWVvdXQpCgoKZGVmIGFsZXJ0KG1zZywgdCk6CiAgICBmb3IgaSBpbiByYW5nZSh0KToKICAgICAgICA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GlsZSBUcnVlOgogICAgICAgIGlmIHRpbWVvdXQgPCAwOgogICAgICAgICAgICByZXR1cm4gTm9uZQogICAgICAgIHRyeToKICAgICAgICAgICAgcmV0dXJuIGJyb3dzZXIuZmluZF9lbGVtZW50KGJ5PUJ5LklELCB2YWx1ZT1faWQpCiAgICAgICAgZXhjZXB0OgogICAgICAgICAgICBwYXNzCiAgICAgICAgdGltZW91dCAtPSAxCiAgICAgICAgdGltZS5zbGVlcCgxKQoKCmRlZiB3YWl0X2VsX2J5X3hwYXRoKHhwLCB0aW1lb3V0KToKICAgIHdoaWxlIFRydWU6CiAgICAgICAgaWYgdGltZW91dCA8IDA6CiAgICAgICAgICAgIHJhaXNlIE5vbmUKICAgICAgICB0cnk6CiAgICAgICAgICAgIHJldHVybiBicm93c2VyLmZpbmRfZWxlbWVudChieT1CeS5YUEFUSCwgdmFsdWU9eHApCiAgICAgICAgZXhjZXB0OgogICAgICAgICAgICBwYXNzCiAgICAgICAgdGltZW91dCAtPSAxCiAgICAgICAgdGltZS5zbGVlcCgxKQoKCmRlZiBsb2dpbigpOgogICAgYnJvd3Nlci5nZXQobG9naW5fdXJsKQogICAgZW1haWwgPSB3YWl0X2VsKCdpbnB1dEVtYWlsJywgdGltZW91dCkKICAgIGlmIGVtYWlsIGlzIE5vbmU6CiAgICAgICAgcmFpc2UgRXhjZXB0aW9uKCJlbWFpbCBub3QgZm91bmQiKQogICAgZW1haWwuY2xpY2soKQogICAgZW1haWwuc2VuZF9rZXlzKGFjY291bnQpCiAgICBwYXNzd2RfaW5wdXQgPSBicm93c2VyLmZpbmRfZWxlbWVudChieT1CeS5JRCwgdmFsdWU9J2lucHV0UGFzc3dvcmQnKQogICAgcGFzc3dkX2lucHV0LmNsZWFyKCkKICAgIHBhc3N3ZF9pbnB1dC5jbGljaygpCiAgICBwYXNzd2RfaW5wdXQuc2VuZF9rZXlzKHBhc3N3ZCkKICAgIGJyb3dzZXIuZmluZF9lbGVtZW50KGJ5PUJ5LklELCB2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WNrKCkKCiAgICB3YWl0X2VsKCdidG5Db21wbGV0ZU9yZGVyJywgNSkuY2xpY2soKQogICAgbG9nZ2luZy5pbmZvKCdjcmVhdGUgb3JkZXIgc3VjY2VzcycpCiAgICB0aW1lLnNsZWVwKDMwKQoKCmlmIF9fbmFtZV9fID09ICdfX21haW5fXyc6CiAgICBsb2dpbigpCiAgICB3aGlsZSBUcnVlOgogICAgICAgIHRyeToKICAgICAgICAgICAgaWYgY3JlYXRlX29yZGVyKCk6CiAgICAgICAgICAgICAgICAjIHJldHVybgogICAgICAgICAgICAgICAgYWxlcnQoJ2J1eSBidXkgYnV5JywgNSkKICAgICAgICAgICAgICAgIHBhc3MKICAgICAgICAgICAgdGltZS5zbGVlcCg1KQogICAgICAgIGV4Y2VwdDoKICAgICAgICAgICAgaW1wb3J0IHRyYWNlYmFjawogICAgICAgICAgICB0cmFjZWJhY2sucHJpbnRfZXhjKCkKICAgICAgICAgICAgbG9nZ2luZy5pbmZvKCdyZXRyeS4uLicpCiAgICAgICAgICAgIGNvbnRpbnVlCg==
复制代码
发表于 2022-11-26 01:16:30 来自手机 | 显示全部楼层
看大佬们吃肉
发表于 2022-11-26 01:16:54 | 显示全部楼层
可惜不会用,,,感谢lz
发表于 2022-11-26 01:17:15 | 显示全部楼层
新手还在熬夜
老手已经睡觉了
发表于 2022-11-26 01:36:34 | 显示全部楼层
感谢分享。。。这个黑五小鸡没抢到几个,python脚本都温习过好几个了
发表于 2022-11-26 01:37:08 | 显示全部楼层
斯巴达好像在订单过程中加验证码了
发表于 2022-11-26 01:38:48 | 显示全部楼层
感谢分享, 还是不抢了
发表于 2022-11-28 23:13:56 | 显示全部楼层
你这个写的抢的是E5的哪一款。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2024-11-26 07:41 , Processed in 0.062242 second(s), 9 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表