mirror of
https://github.com/opelly27/streetmerchant.git
synced 2026-05-20 02:57:34 +00:00
feat(lookup): use random user agents (#1335)
This commit is contained in:
@@ -4,19 +4,11 @@
|
||||
|
||||
### Option 1
|
||||
|
||||
If you're running into _a lot_ of captcha problems, be sure to update your user agent by searching ["what's my user agent" on Google](https://www.google.com/search?q=whats+my+user+agent).
|
||||
|
||||

|
||||
|
||||
You can update your user agent by using `USER_AGENT="your-result"`.
|
||||
|
||||
### Option 2
|
||||
|
||||
If you're _still_ running into problems, try running in headful mode: `HEADLESS="false"`.
|
||||
If you're running into problems, try running in headful mode: `HEADLESS="false"`.
|
||||
|
||||
This will open a browser and run streetmerchant. Note that this isn't a great solution for those running in a headless environment, i.e.: VPS, cloud, docker. Instead, it would be a good solution for those running on separate computer that won't be blocked by running in the background.
|
||||
|
||||
### Option 3
|
||||
### Option 2
|
||||
|
||||
As a last case scenario, use `PUPPETEER_EXECUTABLE_PATH`. This will use your computer's Chrome browser. You can run this is headless or headful mode.
|
||||
|
||||
|
||||
@@ -19,7 +19,6 @@
|
||||
| `PROXY_ADDRESS` | IP Address or fqdn of proxy server |
|
||||
| `PROXY_PORT` | TCP Port number on which the proxy is listening for connections. Default: `80` |
|
||||
| `SCREENSHOT` | Capture screenshot of page if a card is found. Default: `true` |
|
||||
| `USER_AGENT` | Custom User-Agents headers for HTTP requests. Newline separated, e.g.: `USER_AGENT_STRING1 \n USER_AGENT_STRING2`. Default: `Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.108 Safari/537.36` |
|
||||
| `WEB_PORT` | Starts a webserver to be able to control the bot while it is running. Setting this value starts this service. |
|
||||
|
||||
???+ info
|
||||
|
||||
Reference in New Issue
Block a user