Newegg 403 and Amazon 504 Fixes #1298
Replies: 4 comments 6 replies
-
I wasn't able to get this to work in Windows 10. I had no problem setting: In .env for Streetmerchant, I set: Start Tor. I can open another window through Chromium when it is is invoked and see my IP addresses are definitely going through Tor and they are changing at intervals. Setting HEADLESS: "false" Then in TORCC I added: Sure enough, I ONLY get US based exit nodes, but the same warnings appear in Chromium (US based, blocked, etc) as it's running through it's automation. I figured I would try this from home as I have an extra computer, plus I was worried about the massive amount of traffic being billed if I ran this from GCP. In just one week I've used 1TB of data. I have unlimited Xfinity here in Oregon. I've given this my level best and am not sure how to go farther. If you have any ideas, I'm open to hearing them. |
Beta Was this translation helpful? Give feedback.
-
Hey, can you elaborate on how you integrated MaxCircuitDirtiness to the .env file. Sorry I'm new to this and it would really help if you tell me how to do it a little bit elaborately. |
Beta Was this translation helpful? Give feedback.
-
How hard or easy would it be to directly implement this in StreetMerchant itself? Instead of using the single proxy option in the .env file itself, Couldn't you just provide it a list of proxies that it rotates through for every time it scans a store/item? This way every scan/update uses a new IP/Proxy. I tried the update that was added where you can add a list of proxies for each individual store but it seemed to have overwhelmed it and it crashes right away (I created 5 individual .proxies files for each of my 5 stores I was scanning and I put 25 proxies in each). Instead of this, It'd be better to provide StreetMerchant itself this list of 25 proxies that it rotates through for every scan for ALL the stores. |
Beta Was this translation helpful? Give feedback.
-
For amazon, do you mean INCOGNITO and not HEADLESS? If it's running on a remote server, I don't think it can run not headless mode |
Beta Was this translation helpful? Give feedback.
-
I hope this tiny guide will help newcomers who are getting banned from Newegg and Amazon. I finally solved this issue and want to share with you guys.
First of all, I recommend using Google Cloud VM for this. Setting up streetmerchant on your personal daily machine will not be convenient. Google has 90 days free promo.
Newegg simply bans IP. They dont really care about Captcha. I bypassed that by installing Tor and using it's proxy to change IP every 2 minutes. https://youtu.be/wjBO0HM_JuU This video will help you understand how it works. You just adapt this scenario to linux by writing proxy settings in .env and adding
MaxCircuitDirtiness NUM
(minutes you want IP to be changed) to TORRC file(Located in etc/tor)Amazon on the other hand blacklists you because of Captcha. To avoid this, you can clone StreetMerchant repo folder entirely and use slightly different .env config than in case of Newegg: We dont need proxies and IP randomizer here(though you can if you want), just
headless
must be set tofalse
in .env file.This will trigger opening Chromium everytime repo checks the stock. But it never failed me while testing it whole day.
I ended up with two terminals open: one for Newegg, one for Amazon. They work with different settings and so far never failed to check the stock.
Hope this helps folks around here.
Beta Was this translation helpful? Give feedback.
All reactions