Code via 2bitcoder and CodetheThings
- To webscrape for popular products
- Check for inventory and pricing
- Add to Cart
- Checkout Purchase
- Python > 3.6
- Packages
- time
- requests
- bs4
- pprint
- os
- json
- random
- multiprocessing
- termcolor
- Modify profiles.json and add any profiles per template
{
"name": "",
"firstName": "",
"lastName": ""
}
- Modify watchlist.json and add links to monitor per template
{
"site": "",
"profile": "",
"proxy": "",
"quantity": 0,
"desired": 1,
"maxPrice": 0,
"running": 1,
"status": "Idle",
"lastinstock": "",
"taskId": ""
}
- Modify proxies.json and add proxies profiles per template
"myproxies":[
"user:pass@ip:port",
"user:pass@ip:port",
"user:pass@ip:port"
]
- Modify settings.json and modify thresholds
- Run morphBot.py
* Get Product Title
* Get Pricing
* Get Availability
* Get Product Title
* Get Availability
* Get Product Title
* Get Availability