Skip to content

efrasyad/amazon-selenium

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Amazon Selenium

Quick and dirty approach to use Selenium to browse Amazon product by their Amazon Standard Identification Number (ASIN). It will checks whether:

  • Product is available
  • Sold by Amazon
  • Price is within range

When all above criteria are met, buy action will be performed automatically using configured account.

To do

  • Login to Amazon
  • Browse product page
  • Buy item
  • Verify purchase is successful
  • Keep loop in randomized time until an item is bought

How to run

  • Clone this repository

  • Install latest Node LTS

  • Create new .env file inside checkout dir, for example ~/path/to/checkout/dir/.env

  • Populate the new .env file with following values

    AMAZON_USERNAME=your@email.com
    AMAZON_PASSWORD=YourPassword
    AMAZON_SITE=https://www.amazon.co.uk
    AMAZON_CURRENCY=£
    AMAZON_LOCALE=en-GB
    AMAZON_ITEMS_TO_BUY=B07PJV3JPR,B015GW0Y9I,B08X3Q664Q

    or for example for Amazon Germany

    AMAZON_USERNAME=your@email.com
    AMAZON_PASSWORD=YourPassword
    AMAZON_SITE=https://www.amazon.de
    AMAZON_CURRENCY=
    AMAZON_LOCALE=en-GB
    AMAZON_ITEMS_TO_BUY=B07PJV3JPR,B015GW0Y9I,B08X3Q664Q

    You also can configure trusted merchant name by adding comma separated values AMAZON_TRUSTED_MERCHANTS to the .env file, for example:

    AMAZON_TRUSTED_MERCHANTS=Amazon,Amazon US

    By default, it only trusts Amazon if the value is empty. See config for complete reference of available configuration like Amazon site to use, default locale, and default currency.

  • Run npm install

  • Run the Selenium code using npm run start

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%