Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jamesmosier/add-to-cart
Automated checkout for purchasing products from sites like EastBay, FinishLine, Footlocker, & others
https://github.com/jamesmosier/add-to-cart
cart casperjs javascript purchase
Last synced: about 1 month ago
JSON representation
Automated checkout for purchasing products from sites like EastBay, FinishLine, Footlocker, & others
- Host: GitHub
- URL: https://github.com/jamesmosier/add-to-cart
- Owner: jamesmosier
- Created: 2015-10-03T00:52:50.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-10-03T00:54:04.000Z (about 9 years ago)
- Last Synced: 2024-11-07T23:05:25.936Z (about 1 month ago)
- Topics: cart, casperjs, javascript, purchase
- Language: JavaScript
- Size: 195 KB
- Stars: 6
- Watchers: 6
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-supply-chain - Add to Cart
README
# Add to Cart
JavaScript based "add to cart" script using headless automated testing via [CasperJS](http://casperjs.org/).
### What does it do?
There are various JavaScript files, named with what site they work for. Originally this project was meant to try to purchase the adidas Yeezy 350 Boost shoe. Needless to say, once all the sites went down on launch day, my script was useless. In essence, the tests that run simply click the buttons throughout the checkout process, select sizes, and login.
It is a very rough concept and was thrown together somewhat hastely, in order to finish before launch day. With that in mind, I hope to do a major refactor to it in the near future... :pray:
### How to run it?
Better instructions to come, but a rough outline...
* Install [CasperJS](http://casperjs.org/) globally.
* Change directory into the JS folder and run: `casperjs nameOfFile.js --engine=slimerjs --ssl-protocol=TLSv1`