Byparr/README.md

48 lines
2.4 KiB
Markdown
Raw Normal View History

2024-07-25 00:52:06 +00:00
# Byparr
2024-11-26 17:56:10 +00:00
An alternative to [FlareSolverr](https://github.com/FlareSolverr/FlareSolverr) as a drop-in replacement, build with [seleniumbase](https://seleniumbase.io/) and [FastAPI](https://fastapi.tiangolo.com).
2024-07-25 00:52:06 +00:00
> [!WARNING]
2024-11-26 17:56:10 +00:00
> Due to recent challenge changes, this software does not guarantee that the Cloudflare challenge will be bypassed. Cloudflare likely requires valid network traffic originating from the users public IP address to mark a connection as legitimate. While this tool may bypass the initial browser check, it does not ensure that requests will consistently pass Cloudflare's validation. More testing and data are required to understand how Cloudflare identifies connections and requests as valid. Invalid requests will result in Byparr's looping and eventually time-outing.
2024-11-26 17:56:10 +00:00
> [!WARNING]
> Support for NAS devices (like Synology) is minimal. Please report issues, but do not expect it to be fixed quickly. The only ARM device I have is a free Ampere Oracle VM, so I can only test ARM support on that. See [#22](https://github.com/ThePhaseless/Byparr/issues/22) and [#3](https://github.com/ThePhaseless/Byparr/issues/3)
2024-07-25 01:02:04 +00:00
> [!NOTE]
> Thanks to FastAPI implementation, now you can also see the API documentation at `/docs` or `/` (redirect to `/docs`) endpoints.
2024-07-25 00:52:06 +00:00
2024-10-01 11:03:07 +02:00
## Troubleshooting
2024-10-18 13:34:30 +00:00
2024-10-01 11:03:07 +02:00
1. Clone repo to the host that has the container has issues on.
2. Using vscode and `SSH extention`, connect to the host and open repo in it.
2024-11-26 17:56:10 +00:00
3. Download `devcontainers` extention and reopen repo in container (with `CTRL + SHIFT + P` -> `Reopen in devcontainer`)
4. Forward port 6080 from devcontainer (port of noVNC server) to the host.
5. Open `http://localhost:6080` and connect to the virtual desktop.
6. Check if `chromium` works by running in VNC's terminal command `chromium --no-sandbox`.
7. If chromium works, run (or debug) tests from VS Code.
1. If code works, congrats! (/s) You are on your own.
2. If it does not, try another host or network, try again and create issue about the problem.
2024-07-25 01:02:04 +00:00
## Usage
### Docker Compose
```yaml
services:
byparr:
2024-11-26 17:56:10 +00:00
image: ghcr.io/thephaseless/byparr:latest
2024-07-25 01:02:04 +00:00
environment:
- LOG_LEVEL=INFO # optional
ports:
2024-11-26 17:56:10 +00:00
- "8191:8191" # Optional if needed to make make requests/check docs on host
2024-07-25 01:02:04 +00:00
```
2024-07-25 01:03:12 +00:00
## Need help with / TODO
2024-07-25 01:02:04 +00:00
2024-12-02 10:29:13 +01:00
- [x] Slimming container (only ~650 MB now!)
2024-11-26 17:56:10 +00:00
- [x] Add more anti-bot challenges
2024-10-01 11:22:12 +02:00
- [x] Add docstrings
2024-11-26 17:56:10 +00:00
- [x] Implement versioning
2024-07-25 14:46:36 +02:00
- [ ] Proxy support
2024-11-26 17:56:10 +00:00
- [x] Add more architectures support