Skip to content

kristiyann/af1spider

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

14 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

AF1 SPIDER

Service to periodically check whether a certain Nike (at the moment) product is available in the desired size.

Use:

  1. Make sure you have Go & Git installed
    https://go.dev/ https://git-scm.com/downloads
  2. Clone the repository locally
  3. Install dependencies
go mod tidy
  1. Create an .env file in the root of the project and populate the following variables
FROM_EMAIL=

*Email from which the notification will be sent

FROM_PASS=

*Special password for that goes along with your FROM_EMAIL value. This is not your usual Gmail password. If you are using Gmail, you generate it from the google accounts page: 'myaccount.google.com/u/4/apppasswords'

TO_EMAIL=

*Email the notification will be sent to

PRODUCT_LINK=

*Actual page url for a nike product from the official nike site (www.nike.com)

SIZE_US=

*Size you're looking for in US terms

  1. From there on you can just run
go run .

to start the service or

go build

to create an executable to run in one click
*Make sure that you have the .env file in the same directory as the executable otherwise the service will crash