• Stars
    star
    172
  • Rank 221,201 (Top 5 %)
  • Language
    Go
  • License
    MIT License
  • Created over 7 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

京东App自动登录,在线商品自动下单

go-jd

[2021-11] JD buy logic changed, not working now. TBD

Golang version of jd-autobuy

Login

Login by QRCode using JD app

3rd-party

  • clog: Clog is a channel-based logging package for Go.
  • goquery: A little like that j-thing, only in Go.
  • mahonia: Character-set conversion library implemented in Go.
  • go-simplejson: A Go package to interact with arbitrary JSON.

Example

Usage 
  -area string                                                                      
        ship location string, default to Beijing (default "1_72_2799_0")            
  -goods string                                                                     
        the goods you want to by, find it from JD website.                          
        Single Goods:                                                               
          2567304(:1)                                                               
        Multiple Goods:                                                             
          2567304(:1),3133851(:2)                                                   
  -order                                                                            
        submit the order to JingDong when get the Goods.                            
  -period int                                                                       
        the refresh period when out of stock, unit: ms. (default 500)               
  -rush                                                                             
        continue to refresh when out of stock.                                      
# example
go run autobuy.go -goods 531065:2 -order