Skip to content

adyzng/go-jd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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