GithubHelp home page GithubHelp logo

everettsouthwick / amazon-auto-reload Goto Github PK

View Code? Open in Web Editor NEW
56.0 5.0 12.0 346 KB

Node script to iterate through a list of credit/debit cards and buy an Amazon.com gift cards of a specified amount.

License: GNU General Public License v3.0

Dockerfile 2.87% TypeScript 97.13%
amazon selenium gift-card-balance gift-card chromedriver debit-card credit-card card

amazon-auto-reload's Introduction

Hello, I'm Everett ๐Ÿ‘‹

Skills

GitHub Stats

Top Languages

amazon-auto-reload's People

Contributors

ab763 avatar dependabot[bot] avatar everettsouthwick avatar renovate[bot] avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

amazon-auto-reload's Issues

This version of ChromeDriver only supports Chrome version 74

Hello,

i'm getting this error when trying to launch the app.

SessionNotCreatedError: session not created: This version of ChromeDriver only supports Chrome version 74
  (Driver info: chromedriver=74.0.3729.6 (255758eccf3d244491b8a1317aa76e1ce10d57e9-refs/branch-heads/3729@{#29}),platform=Windows NT 10.0.17763 x86_64)

What is the easiest way to resolve?

Can we still use it on macos?

after cloning the repo, and cp config/default-example.json5 to config/default.json5 without modify it since I would like to see what it in action first.
then "Execute npm install && npm run build && npm start" inside config or amazon-auto-reload, it just opens the chrome and freeze for more than 30 sec.

node -v
v13.9.0

Auto Reload in Linux

Hi,

Wanted to ask; have you managed to test the Node.js code in Linux yet? I still haven't quite been able to get it running in Linux, but I have been using the Python successfully (I know the old python branch was written for windows).

If you haven't tested it in Linux, or you have and it isn't working for you either, I can update a branch with linux support in Python (I'm more familiar with Python anyways). If you have tested it in Linux and find that it works fine, I'll go back to figuring out what's going on with my Raspberry Pi (could just because it is ARM64 instead of x86-64).

ReferenceError: URL Is not defined

Running off of master on:

Raspberry Pi 3B+
Ubuntu Mate 18.10 64-bit
Chromium v74.0.3729.169
Chromedriver v74.0.3729.169

Packages installed with node v8.10.0 and npm version 3.5.2

Seeing the following error when running "npm start":

(node:13719) UnhandledPromiseRejectionWarning: ReferenceError: URL is not defined
at new Site (.../repos/amazon-auto-reload/dist/lib/site.js:6:32)
at new Amazon (.../repos/amazon-auto-reload/dist/sites/amazon.js:10:9)
at start (.../repos/amazon-auto-reload/dist/index.js:79:20)
at Object. (.../repos/amazon-auto-reload/dist/index.js:235:1)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Function.Module.runMain (module.js:693:10)
(node:13719) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:13719) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

I am able to run on the Pi 3B+ using the old Python branch. I looked into dist/lib/site.js, and didn't see any obvious definition of StartingURL, but my node is very very rusty and I don't know if the definition would be floating around somewhere else.

Issue with selenium-webdriver server connection terminating early?

Hi,

First, thanks for the script. If you have time to look at this, I'd greatly appreciate it. Have you ever seen any issues with the selenium-webdriver throwing an error and crashing like so?

I am running on a Raspberry Pi 3B+ on a pretty quick connection, and have a pretty simple config with just one card and one reload time.

/home/pi/repos/amazon-auto-reload/node_modules/selenium-webdriver/lib/promise.js:2626
throw error;
^

Error: Server terminated early with status 2
at earlyTermination.catch.e (/home/pi/repos/amazon-auto-reload/node_modules/selenium-webdriver/remote/index.js:252:52)
at process._tickCallback (internal/process/next_tick.js:68:7)
From: Task: WebDriver.createSession()
at Function.createSession (/home/pi/repos/amazon-auto-reload/node_modules/selenium-webdriver/lib/webdriver.js:769:24)
at Function.createSession (/home/pi/repos/amazon-auto-reload/node_modules/selenium-webdriver/chrome.js:761:15)
at createDriver (/home/pi/repos/amazon-auto-reload/node_modules/selenium-webdriver/index.js:170:33)
at Builder.build (/home/pi/repos/amazon-auto-reload/node_modules/selenium-webdriver/index.js:642:16)
at start (/home/pi/repos/amazon-auto-reload/index.js:12:86)
at Object. (/home/pi/repos/amazon-auto-reload/index.js:21:1)
at Module._compile (internal/modules/cjs/loader.js:701:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)

50.50 instead of 0.50

As seen in the screenshot the app is typing in 50.50 instead of .50 in chrome. Interestingly, 51 cents seems to work as expected

image

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Warning

These dependencies are deprecated:

Datasource Name Replacement PR?
npm @hapi/joi Available
npm @types/json5 Unavailable
npm @types/table Unavailable
npm tslint Unavailable

Other Branches

These updates are pending. To force PRs open, click the checkbox below.

  • Replace dependency @hapi/joi with joi ^17.0.0
  • Update dependency @types/accounting to v0.4.5
  • Update dependency @types/hapi__joi to v17.1.14
  • Update dependency @types/selenium-webdriver to v4.1.26
  • Update dependency nodemailer to v6.9.15
  • Update dependency table to v6.8.2
  • Update dependency @types/node to v20.16.5
  • Update dependency inquirer to v9.3.6 (inquirer, @types/inquirer)
  • Update dependency luxon to v3.5.0 (luxon, @types/luxon)
  • Update dependency typescript to v5.6.2

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

docker-compose
docker/docker-compose-not-maintained.yaml
dockerfile
Dockerfile
npm
package.json
  • @hapi/joi ^17.0.0
  • @types/accounting ^0.4.1
  • @types/json5 0.0.30
  • @types/luxon ^3.0.0
  • @types/node ^20.0.0
  • @types/selenium-webdriver ^4.0.0
  • @types/table ^6.0.0
  • accounting ^0.4.1
  • chalk ^5.0.0
  • inquirer ^9.0.0
  • json5 ^2.2.2
  • luxon ^3.0.0
  • selenium-webdriver 4.18
  • table ^6.0.0
  • typescript ^5.0.0
  • winston 3.11
  • @types/hapi__joi ^17.0.0
  • @types/inquirer ^9.0.0
  • cross-conf-env ^1.1.2
  • html-to-text ^9.0.0
  • nodemailer ^6.6.1
  • tslint ^5.17.0
  • tslint-eslint-rules ^5.4.0

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.