Compare commits

..
Author SHA1 Message Date
ThePhaseless f98e823991 Migrate to camoufox (#235)
* use camoufox

* build custom branches

* organize compose

* ignore missing stubs

* add init method

* create ADDON PATH

* check if solving is required

* type checking and remove logger

* uv sync

* add timeout

* add descriptiuon

* cancel previous runs

* wildcard minor

* fix proxy

* syntax fix

* [skip ci] fix loop warning

* fix proxy format

* copy over docker ignore

* remove testing line

* comment out port expose

* remove idope

* use strict typechecking

* refactor

* adjust compose

* run init only before test

* try test without init

* add curl

* handle page response

* remove turnsile test

* fix dockerignore symlink

* use newer debian

* bump pytest

* add docker in docker in devcontaienr

* remove unused values

* handle timeouts

* fix edgecase

* use new envs for proxy

* remove init command

* remove testing line

* remove setuptools

* fix linters

* reimport

* readd setuptools

* better float handling
2025-09-05 23:08:35 +02:00
renovate[bot] ff49ccb08b fix(deps): update dependency seleniumbase to v4.41.3 (#234)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-31 13:33:01 +00:00
renovate[bot] 7cae16ff63 fix(deps): update dependency seleniumbase to v4.41.2 (#233)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-27 17:33:26 +00:00
renovate[bot] 34e74b1f7b chore(deps): update dependency seleniumbase to v4.41.1 (#226)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-19 22:45:50 +00:00
ThePhaseless d4c058e7dc use trixie as base 2025-08-17 03:19:10 +02:00
ThePhaseless efcd8f0798 Merge pull request #225 from ThePhaseless/renovate/actions-checkout-5.x
chore(deps): update actions/checkout action to v5
2025-08-17 02:39:46 +02:00
ThePhaseless 4ab174243c fix exception 2025-08-17 00:38:37 +00:00
ThePhaseless d4e314e6f9 Merge pull request #228 from ThePhaseless/fix-cloudflare-errors
Fix Cloudfare errors
2025-08-17 01:20:13 +02:00
ThePhaseless b29e4c826e cancel previous runs 2025-08-16 22:50:10 +00:00
ThePhaseless 4ab01abbf0 ignore regex syntax warning 2025-08-16 22:49:24 +00:00
ThePhaseless 834cb76241 Merge branch 'main' into fix-cloudflare-errors 2025-08-16 22:43:12 +00:00
ThePhaseless 858bba598f bump deps 2025-08-16 22:41:26 +00:00
ThePhaseless 27beceaf4d update example compose file 2025-08-16 22:41:22 +00:00
renovate[bot] eb07de7421 fix(deps): update dependency seleniumbase to v4.41.0 (#3)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-16 17:32:57 +00:00
renovate[bot] 7348c0f19b chore(deps): update dependency ruff to v0.12.9 (#2)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-16 16:12:55 +00:00
Alvaro Santos Andres 6e1c073a6f fix: set default CAPTCHA_RETRIES to 3 2025-08-12 07:16:33 +02:00
renovate[bot] 1e443c2dbb chore(deps): update actions/checkout action to v5 2025-08-11 13:34:58 +00:00
Alvaro Santos Andres b153d4ae34 fix: simplify code to fix PR suggestions 2025-08-11 06:57:42 +00:00
Alvaro Santos Andres a3fec4c584 chore: fix renovate in a fork 2025-08-09 16:13:31 +00:00
renovate[bot] bf8e8ae20f chore(deps): update dependency ruff to v0.12.8 (#224)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-07 23:24:17 +00:00
Alvaro Santos Andres ddd325ae29 Merge remote-tracking branch 'upstream/main' 2025-08-07 08:17:08 +02:00
ThePhaseless b1704589ae [skip ci] Clarify questions 2025-08-06 23:56:41 +02:00
ThePhaseless 6fa5fceff1 [skip ci] Clarify some questions 2025-08-06 23:54:47 +02:00
ThePhaseless 9ef7a3d3ae Redefine "drop in replacement"
fixes #214
2025-08-06 23:21:40 +02:00
ThePhaseless 9eac1f872d Merge pull request #221 from mdallaire/main
feat(docker): add support for HOST env
2025-08-06 23:16:26 +02:00
Alvaro Santos Andres d5c250c647 chore: enable renovate 2025-08-05 06:58:56 +02:00
renovate[bot] e150b1a122 fix(deps): update dependency seleniumbase to v4.40.8 (#222)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-05 00:57:59 +00:00
Mathieu Dallaire 117c9bdd95 update readme 2025-08-04 11:27:27 -04:00
Mathieu Dallaire a3cd9815bd fix env 2025-08-04 10:56:01 -04:00
Mathieu Dallaire 73752f89c8 feat(docker): add support for HOST env 2025-08-04 10:35:49 -04:00
renovate[bot] c1dfec8c4d fix(deps): update dependency fastapi to v0.116.1 (#211)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-03 14:15:08 +00:00
renovate[bot] 64cefb7396 chore(deps): update dependency pytest-asyncio to v1.1.0 (#215)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-03 09:33:15 +00:00
renovate[bot] ab887df97f chore(deps): update dependency ruff to v0.12.7 (#213)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-03 05:44:30 +00:00
renovate[bot] c5fbc9c363 chore(deps): update dependency deptry to v0.23.1 (#219)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-03 00:48:14 +00:00
renovate[bot] 8178f646c0 fix(deps): update dependency seleniumbase to v4.40.7 (#212)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-08-02 21:00:28 +00:00
Alvaro Santos Andres 707a9c7a83 fix: use of CDP Mode 2025-07-25 16:31:28 +00:00
Alvaro Santos Andres 183f4f7f0f fix: enable reload to debug errors (2) 2025-07-25 15:19:05 +00:00
Alvaro Santos Andres 23d606a701 fix: enable reload to debug errors 2025-07-25 14:59:57 +00:00
Alvaro Santos Andres 6b0da3cc5e fix: add more logging to debug errors 2025-07-25 14:38:22 +00:00
Alvaro Santos Andres 39f758859d fix: disabled HEADLESS mode by default and updated dependencies 2025-07-25 13:51:19 +02:00
renovate[bot] 6fa0658f4c fix(deps): update dependency seleniumbase to v4.40.0 (#210)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-04 05:40:47 +00:00
renovate[bot] d13ab99344 chore(deps): update dependency ruff to v0.12.2 (#209)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-04 03:34:17 +00:00
renovate[bot] c9bcdd6099 fix(deps): update dependency seleniumbase to v4.39.6 (#208)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-07-02 05:28:46 +00:00
renovate[bot] 2263886efe fix(deps): update dependency uvicorn to v0.35.0 (#207)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-28 21:39:11 +00:00
renovate[bot] 5d3ddd9486 fix(deps): update dependency fastapi to v0.115.14 (#205)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-27 07:46:59 +00:00
renovate[bot] a2daf5a1e0 chore(deps): update dependency ruff to v0.12.1 (#206)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-27 03:34:05 +00:00
renovate[bot] 96d1bdd30f fix(deps): update dependency seleniumbase to v4.39.5 (#203)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-18 01:35:16 +00:00
renovate[bot] d275c56a8d chore(deps): update dependency ruff to v0.12.0 (#202)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-17 23:15:26 +00:00
renovate[bot] 09a23ddeb3 fix(deps): update dependency fastapi to v0.115.13 (#201)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-17 18:52:42 +00:00
renovate[bot] 3c99483a49 fix(deps): update dependency pydantic to v2.11.7 (#200)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-14 13:47:57 +00:00
renovate[bot] 2223bf722d fix(deps): update dependency pydantic to v2.11.6 (#199)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-13 15:13:25 +00:00
renovate[bot] 066a6d5f09 fix(deps): update dependency seleniumbase to v4.39.4 (#198)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-13 00:31:49 +00:00
renovate[bot] 128a0301f6 fix(deps): update dependency seleniumbase to v4.39.3 (#195)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-10 09:37:17 +00:00
renovate[bot] 9ead42863d chore(deps): update dependency ruff to v0.11.13 (#194)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-07 00:41:45 +00:00
renovate[bot] 89e9a176c7 fix(deps): update dependency seleniumbase to v4.39.2 (#184)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-05 02:31:51 +00:00
ThePhaseless d5c163f621 Merge pull request #182 from ThePhaseless/renovate/pytest-asyncio-1.x
chore(deps): update dependency pytest-asyncio to v1
2025-06-04 22:59:27 +02:00
ThePhaseless 6694d45e74 remove xdist - selbase dep 2025-06-04 20:56:52 +00:00
ThePhaseless b23b814e43 Merge pull request #193 from LeviSnoot/proc_lifecycle
fix: handle zombie processes
2025-06-04 22:45:56 +02:00
Levi 9353daaf1a revert refactor of src/utils.py 2025-06-04 01:26:47 +02:00
Levi 5a35117299 fix: handle zombie processes 2025-06-03 15:24:57 +02:00
renovate[bot] ee8aeed9b1 Update dependency uvicorn to v0.34.3 (#190)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-06-01 13:39:42 +00:00
renovate[bot] c188d4fe85 Update dependency ruff to v0.11.12 (#185)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-29 17:53:30 +00:00
renovate[bot] 4ecfc98c81 Update dependency pytest-asyncio to v1 2025-05-26 10:29:40 +00:00
renovate[bot] 38f344a71c Update dependency seleniumbase to v4.39.0 (#180)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-24 15:08:04 +00:00
renovate[bot] 815faddcf2 Update dependency seleniumbase to v4.38.3 (#179)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-23 15:28:23 +00:00
renovate[bot] 999ca88a19 Update dependency ruff to v0.11.11 (#178)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-23 08:25:59 +00:00
renovate[bot] dd35795ffa Update dependency pydantic to v2.11.5 (#177)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-23 03:50:32 +00:00
ThePhaseless 147902be2c Update ProxyBase link 2025-05-21 12:47:02 +02:00
ThePhaseless 7e9c2ba97d update readme 2025-05-18 23:22:19 +02:00
ThePhaseless 9fc9af3ba9 add unescaped chars test link 2025-05-18 01:14:32 +02:00
ThePhaseless 55526308f6 bump debian version to bookworm 2025-05-18 01:03:12 +02:00
ThePhaseless cdb3223a87 fix typo 2025-05-17 22:45:55 +00:00
ThePhaseless 329235ba5e add devcontainer stage 2025-05-17 22:45:47 +00:00
ThePhaseless 5031d1e554 set default values 2025-05-17 22:45:21 +00:00
ThePhaseless 090b5487e4 devcontainer tweaks 2025-05-17 20:50:13 +00:00
ThePhaseless c608bbc46e set shm size to prevent memory overload 2025-05-17 20:49:18 +00:00
ThePhaseless 46eff073b7 use base dockerfile for devcontainer 2025-05-17 18:45:59 +02:00
renovate[bot] a347b7046b Update dependency ruff to v0.11.10 (#174)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-15 23:03:52 +00:00
renovate[bot] 4658d04d2e Update dependency seleniumbase to v4.38.2 (#173)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-13 11:52:53 +00:00
renovate[bot] b6aa1a8c58 Update dependency seleniumbase to v4.38.0 (#169)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-10 02:02:57 +00:00
renovate[bot] 5bff9e1bc1 Update dependency ruff to v0.11.9 (#171)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-09 21:55:22 +00:00
renovate[bot] dbd16882de Update dependency ruff to v0.11.8 (#168)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-01 17:46:00 +00:00
renovate[bot] adc98e8cea Update dependency seleniumbase to v4.37.12 (#167)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-05-01 11:23:17 +00:00
renovate[bot] 8e7d007c6f Update dependency pydantic to v2.11.4 (#166)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-30 06:01:21 +00:00
renovate[bot] 51c1577d7c Update dependency seleniumbase to v4.37.10 (#165)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-29 20:40:54 +00:00
ThePhaseless 98f9480157 fix invalid requests response 2025-04-29 10:57:21 +02:00
renovate[bot] 2be9fa55a9 Update dependency seleniumbase to v4.37.9 (#164)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-29 06:08:17 +00:00
renovate[bot] 6520444d4e Update dependency seleniumbase to v4.37.7 (#160)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-25 16:40:57 +00:00
renovate[bot] 693d67bcfd Update dependency ruff to v0.11.7 (#159)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-25 03:24:57 +00:00
renovate[bot] b217778a79 Update dependency seleniumbase to v4.37.6 (#158)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-23 21:57:08 +00:00
renovate[bot] 3b18dfe522 Update dependency seleniumbase to v4.37.5 (#157)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-23 02:47:45 +00:00
renovate[bot] ee5b7fe027 Update dependency seleniumbase to v4.37.4 (#156)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-20 22:44:02 +00:00
renovate[bot] d2678643c0 Update dependency seleniumbase to v4.37.3 (#155)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-19 21:16:24 +00:00
renovate[bot] 343fdca493 Update dependency uvicorn to v0.34.2 (#154)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-19 10:43:47 +00:00
renovate[bot] 5a8edf13ab Update dependency ruff to v0.11.6 (#153)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-17 19:01:37 +00:00
ThePhaseless 1fa6b66f3a fixes ctrl+c on docker run 2025-04-17 11:38:52 +00:00
ThePhaseless fe797ba2ac add userAgent and version to healthcheck 2025-04-17 11:27:17 +00:00
ThePhaseless 409c0f9d8c [skip ci] add proxybase collaboration info 2025-04-14 10:38:02 +00:00
renovate[bot] d22e780219 Update dependency uvicorn to v0.34.1 (#149)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-13 18:03:26 +00:00
ThePhaseless d4f722d121 [skip ci] Clarified the info 2025-04-13 00:11:15 +02:00
ThePhaseless 38b3407b15 fix versioning 2025-04-12 21:53:11 +00:00
ThePhaseless 81959df037 Added SOCKS5 with auth handling 2025-04-12 21:46:42 +00:00
ThePhaseless 05f9f44c79 add protocol to example 2025-04-12 20:47:52 +00:00
ThePhaseless 08cfd95d6a make all pyfiles as not executable 2025-04-12 20:47:37 +00:00
renovate[bot] f60ecbf2ee Update dependency seleniumbase to v4.37.2 (#148)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-11 06:37:45 +00:00
renovate[bot] 630389aebe Update dependency ruff to v0.11.5 (#147)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-10 22:15:44 +00:00
renovate[bot] 603cd0f9a7 Update dependency pydantic to v2.11.3 (#145)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-08 23:00:30 +00:00
ThePhaseless c75c79a2ad rename and add missing fields 2025-04-08 13:13:01 +00:00
ThePhaseless f3fe419eae Merge pull request #133 from MaxG88/fix/flaresolverr-compatibility 2025-04-08 15:12:32 +02:00
ThePhaseless e1a2e77036 tweak camel aliases 2025-04-08 12:34:25 +00:00
ThePhaseless 1bdd65499d [skip ci] add logs fields 2025-04-08 13:39:35 +02:00
renovate[bot] e15d1facf2 Update dependency seleniumbase to v4.37.1 (#144)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-08 02:46:34 +00:00
renovate[bot] 38d5b7dd21 Update dependency seleniumbase to v4.37.0 (#142)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-07 07:00:05 +00:00
renovate[bot] 96d96c32a6 Update dependency ruff to v0.11.4 (#140)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-04 23:01:16 +00:00
renovate[bot] c9967c85aa Update dependency seleniumbase to v4.36.5 (#139)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-04 09:45:03 +00:00
renovate[bot] ed86a79c4d Update dependency ruff to v0.11.3 (#137)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-03 23:33:34 +00:00
renovate[bot] d6b2036956 Update dependency pydantic to v2.11.2 (#136)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-04-03 18:47:40 +00:00
Maxime Gagnon dd74f80c18 restore flaresolverr compatibility 2025-03-30 16:31:05 -04:00
renovate[bot] 2d9e415eb0 Update dependency seleniumbase to v4.36.4 (#132)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-29 09:24:01 +00:00
renovate[bot] a328e52471 Update dependency pydantic to v2.11.1 (#130)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-29 01:39:41 +00:00
renovate[bot] e3d1cdfb3e Update dependency pydantic to v2.11.0 (#129)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-27 22:59:27 +00:00
ThePhaseless ae12dc05e4 [skip ci] use text area 2025-03-27 17:18:56 +01:00
ThePhaseless d5a1bed3c1 [skip ci] better description 2025-03-27 17:17:30 +01:00
ThePhaseless 3830149ba0 [skip ci] fix spacing 2025-03-27 17:15:52 +01:00
ThePhaseless 7a9a64a4b2 [skip ci] Add compose config input 2025-03-27 17:15:24 +01:00
renovate[bot] 16efa73f48 Update dependency seleniumbase to v4.36.2 (#125)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-26 03:25:03 +00:00
renovate[bot] a5d6a27b2c Update dependency pytest-asyncio to v0.26.0 (#124)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-25 15:53:25 +00:00
renovate[bot] 20ab7491e1 Update dependency fastapi to v0.115.12 (#123)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-24 01:52:38 +00:00
renovate[bot] 9aa041a022 Update dependency seleniumbase to v4.36.1 (#122)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-23 02:14:35 +00:00
renovate[bot] 725339f316 Update dependency seleniumbase to v4.36.0 (#121)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-22 02:39:13 +00:00
renovate[bot] fed8e5d0a6 Update dependency ruff to v0.11.2 (#120)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-21 22:43:45 +00:00
renovate[bot] e612d82c2c Update dependency ruff to v0.11.1 (#118)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-20 21:36:01 +00:00
ThePhaseless 79188f171c Switch to GPL-3.0 2025-03-20 12:55:11 +01:00
ThePhaseless 2292ce7479 Update bug_report.yml 2025-03-16 19:59:04 +01:00
ThePhaseless 8ea5d32e03 [skip ci] Create feature_request.yaml 2025-03-16 19:57:44 +01:00
renovate[bot] a4ba7c257d Update dependency ruff to v0.11.0 (#116)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-14 19:27:16 +00:00
renovate[bot] 44bab14090 Update dependency ruff to v0.10.0 (#115)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-14 02:36:00 +00:00
renovate[bot] a903353fef Update dependency seleniumbase to v4.35.7 (#113)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-12 12:06:26 +00:00
renovate[bot] 3ec4ea5375 Update dependency seleniumbase to v4.35.6 (#111)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-08 02:14:17 +00:00
renovate[bot] 27f67be245 Update dependency ruff to v0.9.10 (#110)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-07 22:21:55 +00:00
renovate[bot] f78c18ed25 Update dependency seleniumbase to v4.35.5 (#109)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-07 05:42:23 +00:00
renovate[bot] b8cf0b776e Update dependency seleniumbase to v4.35.4 (#108)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-06 16:22:04 +00:00
ThePhaseless 6fca51f408 remove pytest (included in sb) 2025-03-06 11:46:12 +00:00
renovate[bot] 5a4de1204e Update dependency fastapi to v0.115.11 (#105)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-02 06:34:15 +00:00
ThePhaseless 1da4d608a1 Merge pull request #104 from ThePhaseless/ThePhaseless-patch-1
Fix timestamps
2025-03-01 20:10:55 +01:00
ThePhaseless db0924d9ce use default instead of factory 2025-03-01 20:09:33 +01:00
ThePhaseless b8d2b80746 Fix timestamps 2025-03-01 19:55:35 +01:00
renovate[bot] 537d7f803c Update dependency ruff to v0.9.9 (#98)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-01 06:15:08 +00:00
renovate[bot] 1273dd51c2 Update dependency fastapi to v0.115.10 (#100)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-03-01 01:36:20 +00:00
ThePhaseless 332402652d switch to curl 2025-02-28 23:10:09 +01:00
ThePhaseless 061f0d44de fix latest tagging 2025-02-28 19:28:05 +01:00
ThePhaseless b7914268bc readd test 2025-02-28 19:16:47 +01:00
ThePhaseless 2e8ed3fa9b remove apt caching 2025-02-28 19:16:09 +01:00
ThePhaseless 6f6941e423 lowercase registry 2025-02-28 19:01:06 +01:00
ThePhaseless 25ae01ba71 remove artifact upload 2025-02-28 18:46:48 +01:00
ThePhaseless a065b4b7ae remove invalid argument 2025-02-28 18:43:55 +01:00
ThePhaseless 508568ded7 login before push 2025-02-28 18:36:00 +01:00
ThePhaseless 72f54fc0a9 push and then merge 2025-02-28 18:33:30 +01:00
ThePhaseless 1499cfa3df push before merging 2025-02-28 18:16:39 +01:00
ThePhaseless cf46f481e1 fix bash 2025-02-28 18:04:23 +01:00
ThePhaseless c90b0ab91e echo args 2025-02-28 17:53:04 +01:00
ThePhaseless f5e75b451c push all tags into one 2025-02-28 17:43:57 +01:00
ThePhaseless 0fbae3f9dd bump buildkit cache 2025-02-28 17:14:40 +01:00
ThePhaseless 70f99e40fc tweak labels 2025-02-28 17:09:23 +01:00
ThePhaseless 6a56098a33 add platform to apt cache name 2025-02-28 16:28:32 +01:00
ThePhaseless 7dd1dd633f upload apt and uv cache 2025-02-28 16:24:20 +01:00
ThePhaseless e825e588a8 add qemu back 2025-02-28 16:17:54 +01:00
ThePhaseless 43fe522417 [skip ci] allow sha versions 2025-02-28 16:13:28 +01:00
ThePhaseless ad88b7b505 comment out test 2025-02-28 16:11:59 +01:00
ThePhaseless 78deb9ed34 tweaks to tags 2025-02-28 16:11:10 +01:00
renovate[bot] 65f39b4448 Update dependency fastapi to v0.115.9 (#96)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-28 02:18:00 +00:00
ThePhaseless 565b076c67 cache apt and uv libs 2025-02-28 01:06:25 +01:00
ThePhaseless 0ea76ac000 add ca-certs 2025-02-27 23:29:47 +00:00
ThePhaseless 52f4b6110a docker way to install uv 2025-02-27 23:28:23 +00:00
ThePhaseless 8c9795150e cleanup dockerfile 2025-02-27 23:16:34 +00:00
ThePhaseless 44c3d5b512 dont upgrade packages 2025-02-27 20:31:37 +00:00
ThePhaseless 817610d216 add qemu 2025-02-27 20:20:55 +00:00
ThePhaseless bf1daabaf9 another attempt 2025-02-27 20:07:23 +00:00
ThePhaseless 9445ffc5f6 fix invalidating cache 2025-02-27 19:57:00 +00:00
ThePhaseless 67303951bb add version to container 2025-02-27 19:42:32 +00:00
ThePhaseless 42303d5582 another fix 2025-02-27 19:41:54 +00:00
ThePhaseless 35c6189f6d try fixing new build 2025-02-27 19:10:47 +00:00
ThePhaseless 1e6bd9e656 do not use proxy on tests 2025-02-27 19:10:47 +00:00
ThePhaseless 7bd7925530 log version 2025-02-27 19:10:47 +00:00
renovate[bot] f0dd9517e7 Update dependency ruff to v0.9.8 (#95)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-27 18:47:33 +00:00
renovate[bot] af72a32870 Update dependency seleniumbase to v4.35.2 (#94)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-27 02:41:31 +00:00
ThePhaseless d0dea96f63 try new build action 2025-02-26 11:03:46 +01:00
ThePhaseless d7138776a5 better logging 2025-02-26 11:03:46 +01:00
ThePhaseless 7e2c895a11 faster title check 2025-02-26 11:03:46 +01:00
renovate[bot] 29793054f8 Update dependency seleniumbase to v4.35.1 (#89)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-25 02:46:42 +00:00
renovate[bot] 9fbf4982c8 Update dependency seleniumbase to v4.35.0 (#85)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-21 09:46:27 +00:00
renovate[bot] f60d828914 Update dependency ruff to v0.9.7 (#87)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-21 05:53:27 +00:00
ThePhaseless bdcf756b7e [skip ci] update TODO and fix None as default for Proxy 2025-02-20 22:59:11 +01:00
ThePhaseless 61ef009944 [skip ci] sync tests and build x64 cache 2025-02-20 21:47:15 +00:00
ThePhaseless 02fdfb619a remove psutil 2025-02-20 21:45:53 +00:00
ThePhaseless 978efa7a5b build arm first 2025-02-20 21:34:14 +00:00
ThePhaseless a912a32eea try to fix gha apt error 2025-02-20 21:34:07 +00:00
ThePhaseless b8a3995c8c [skip ci] fix typo and remake Troubleshooting 2025-02-20 21:31:17 +00:00
ThePhaseless 59104a3c6e [skip ci] readd symlink for chromedriver to fix arm64 2025-02-20 21:20:28 +00:00
ThePhaseless a9edd671a2 do not publish test container 2025-02-20 21:00:52 +00:00
ThePhaseless 5c5451785e remove forcing headless and handmade symlink 2025-02-20 20:57:05 +00:00
ThePhaseless 4d11b950a1 add back simultaneous tests 2025-02-20 20:56:24 +00:00
ThePhaseless df161e6d2e gha cache fix 2025-02-20 20:50:11 +00:00
ThePhaseless 8e53210014 fix tests not being skipped properly 2025-02-20 20:37:02 +00:00
ThePhaseless 43cd9297cb fix #86 2025-02-20 20:36:48 +00:00
ThePhaseless 19670c8e06 fix deprecation warning 2025-02-20 20:36:33 +00:00
ThePhaseless eba16fc3de change interval to 15 minutes 2025-02-20 20:36:25 +00:00
ThePhaseless ecbb2ab182 separate files, add gzip, save screenshots on exception, add PROXY support 2025-02-17 23:08:14 +00:00
ThePhaseless 36421b2c1b use 3 retries 2025-02-17 21:55:02 +00:00
renovate[bot] ac953fe704 Update dependency seleniumbase to v4.34.15 (#83)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-14 01:49:47 +00:00
renovate[bot] 30f25acd55 Update dependency seleniumbase to v4.34.14 (#82)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-13 10:36:29 +00:00
renovate[bot] 554347ce6f Update dependency seleniumbase to v4.34.13 (#81)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-12 07:40:27 +00:00
renovate[bot] 58a486c41d Update dependency ruff to v0.9.6 (#79)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-11 19:54:18 +00:00
renovate[bot] dc80b0cccf Update dependency seleniumbase to v4.34.12 (#78)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-08 09:28:20 +00:00
renovate[bot] 84a70ad35b Update dependency seleniumbase to v4.34.10 (#77)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-08 01:14:19 +00:00
renovate[bot] 6618bcf651 Update dependency seleniumbase to v4.34.9 (#75)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-07 17:22:47 +00:00
renovate[bot] 620c768375 Update dependency ruff to v0.9.5 (#76)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-07 01:27:10 +00:00
ThePhaseless 9244768ce4 remove bs4 from direct deps 2025-02-06 18:46:39 +00:00
ThePhaseless 9bd13e19a0 [skip ci] Add Docker as host 2025-02-06 18:39:53 +00:00
ThePhaseless ecd9e0aee2 [skip ci] remove checkbox index 2025-02-06 18:36:47 +00:00
ThePhaseless 78137997e1 [skip ci] use new issue type 2025-02-06 18:36:00 +00:00
ThePhaseless 03c98375f2 remove blank issues 2025-02-06 17:54:25 +00:00
ThePhaseless 4bfb7845dd remove btmet due to dns issue 2025-02-06 17:50:44 +00:00
renovate[bot] d7c22f042e Update dependency seleniumbase to v4.34.6 (#72)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-02 20:50:05 +00:00
renovate[bot] 33a1327f93 Update dependency seleniumbase to v4.34.5 (#71)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-02-02 00:57:51 +00:00
renovate[bot] e52616934b Update dependency ruff to v0.9.4 (#70)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-31 01:37:57 +00:00
renovate[bot] 892daccc60 Update dependency fastapi to v0.115.8 (#69)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-30 22:09:55 +00:00
renovate[bot] 3d91874ddb Update dependency seleniumbase to v4.34.4 (#68)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-29 09:56:16 +00:00
renovate[bot] 3026ed4a41 Update dependency pytest-asyncio to v0.25.3 (#67)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-29 01:24:38 +00:00
ThePhaseless 4b5d82b4f1 remove apt python binaries 2025-01-27 20:56:50 +00:00
ThePhaseless 56d9a4659b update seleniumbase 2025-01-26 19:50:26 +00:00
ThePhaseless 273622c30c use uv as base 2025-01-26 19:50:21 +00:00
renovate[bot] d0b51020a0 Update dependency deptry to v0.23.0 (#66)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-26 12:26:48 +00:00
renovate[bot] d17def34ba Update dependency ruff to v0.9.3 (#64)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-24 12:59:06 +00:00
renovate[bot] 40a4bf3d8f Update dependency fastapi to v0.115.7 (#63)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-24 09:49:14 +00:00
renovate[bot] e0bb4115fb Update dependency pydantic to v2.10.6 (#65)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-24 05:53:35 +00:00
renovate[bot] 9e2d40845c Update dependency pytest-retry to v1.7.0 (#61)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-19 12:26:29 +00:00
renovate[bot] 6c3da87c00 Update dependency ruff to v0.9.2 (#60)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-16 21:39:41 +00:00
ThePhaseless 78d97dfd0d [skip ci] Remove deprecated env 2025-01-16 13:43:10 +01:00
renovate[bot] 4461f5a59a Update dependency seleniumbase to v4.33.15 (#58)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-14 09:54:19 +00:00
renovate[bot] 7dac738ac5 Update dependency ruff to v0.9.1 (#57)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-11 02:22:06 +00:00
renovate[bot] ead7a09ce2 Update dependency deptry to v0.22.0 (#56)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-10 18:34:01 +00:00
renovate[bot] bf85a854fa Update dependency seleniumbase to v4.33.14 (#55)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-10 09:42:44 +00:00
renovate[bot] 9a20451ad9 Update dependency seleniumbase to v4.33.13 (#54)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-10 02:36:09 +00:00
renovate[bot] 150bf80583 Update dependency ruff to v0.9.0 (#53)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-09 22:05:49 +00:00
renovate[bot] bcce6779cc Update dependency pydantic to v2.10.5 (#52)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-09 17:51:57 +00:00
renovate[bot] cd7e803411 Update dependency pytest-asyncio to v0.25.2 (#51)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-08 17:52:39 +00:00
renovate[bot] 5dc76167c2 Update dependency ruff to v0.8.6 (#50)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-04 16:55:58 +00:00
renovate[bot] 8ae150fd87 Update dependency ruff to v0.8.5 (#49)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-02 19:58:26 +00:00
ThePhaseless 0325877e19 [skip ci] clarified xvfb platform requirement 2025-01-02 12:35:30 +00:00
ThePhaseless c4159e5c38 disable headless on docker 2025-01-02 12:29:10 +00:00
ThePhaseless 83169ce019 add headless env 2025-01-02 12:18:21 +00:00
ThePhaseless 1c0929fbc5 check if url is valid 2025-01-02 12:17:43 +00:00
renovate[bot] 9170967455 Update dependency pytest-asyncio to v0.25.1 (#48)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-01-02 09:14:41 +00:00
renovate[bot] d5d0bf7923 Update dependency seleniumbase to v4.33.12 (#47)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-25 09:53:33 +00:00
renovate[bot] 17854c70ed Update dependency deptry to v0.21.2 (#45)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-20 05:22:27 +00:00
renovate[bot] e30954c98c Update dependency psutil to v6.1.1 (#44)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-19 22:35:44 +00:00
renovate[bot] 2556a1bc88 Update dependency ruff to v0.8.4 (#43)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-19 15:40:42 +00:00
renovate[bot] 6c065d4dd3 Update dependency pydantic to v2.10.4 (#42)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-18 21:51:16 +00:00
ThePhaseless 096eda0fa3 fix utils 2024-12-18 13:32:37 +00:00
ThePhaseless 2ebb1bd820 optional xvfb support 2024-12-18 13:29:00 +00:00
ThePhaseless bf37539890 do not use virtual display 2024-12-17 12:03:53 +00:00
ThePhaseless d7ef83b8c6 add tags info and use latest on stable release 2024-12-17 12:03:36 +00:00
renovate[bot] 1a7cd9d657 Update dependency seleniumbase to v4.33.11 (#41)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-16 00:47:28 +00:00
renovate[bot] f9387e6942 Update dependency uvicorn to v0.34.0 (#40)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-15 19:06:58 +00:00
renovate[bot] 9d8c8db979 Update dependency uvicorn to v0.33.0 (#39)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-14 15:46:21 +00:00
renovate[bot] 979e0b4803 Update dependency ruff to v0.8.3 (#38)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-12-14 04:02:50 +00:00
ThePhaseless 3dbe3c424c fix circular imports 2024-12-13 22:43:29 +00:00
ThePhaseless bbb7c73065 kill old processes 2024-12-13 22:38:47 +00:00
ThePhaseless 9a353b3da2 remove poetry remains 2024-12-13 22:30:58 +00:00
ThePhaseless 140a97003e update packages 2024-12-13 21:12:30 +00:00
ThePhaseless c9e29f578d save cookies between requests 2024-12-12 23:45:24 +00:00
ThePhaseless c37ab51179 combine apt installs to one 2024-12-11 01:04:08 +00:00
ThePhaseless 962db9409c pull before build and test 2024-12-11 01:02:59 +00:00
ThePhaseless 96a9cc7ba9 test, then build 2024-12-11 01:01:00 +00:00
ThePhaseless bf9460b960 delete unused file 2024-12-11 00:52:20 +00:00
ThePhaseless c0547192dd test only on amd64 2024-12-11 00:46:53 +00:00
ThePhaseless 008077076c try using arm builder 2024-12-11 00:44:22 +00:00
ThePhaseless b33444dc48 use matrix for build 2024-12-11 00:40:11 +00:00
ThePhaseless b8c8576e5a github actions shared lib fix 2024-12-11 00:21:07 +00:00
ThePhaseless 905d802a26 add back retires 2024-12-10 23:38:13 +00:00
ThePhaseless f99429fdea update all packages but install only needed 2024-12-10 23:28:29 +00:00
ThePhaseless 1a4ec03587 Merge pull request #37 from ThePhaseless/uv
Uv
2024-12-10 23:50:34 +01:00
ThePhaseless ee2630dce2 enable auto update 2024-12-10 22:48:53 +00:00
ThePhaseless 82130b77c0 fix docker and update readme 2024-12-10 22:48:35 +00:00
ThePhaseless faf7e5e51a migrate to uv 2024-12-10 22:16:30 +00:00
ThePhaseless 597faa48dc add response type 2024-12-10 21:54:39 +00:00
ThePhaseless a28dbbe972 use docker to test 2024-12-10 21:54:29 +00:00
ThePhaseless 82124dee9b force exit on exception 2024-12-10 21:29:20 +00:00
ThePhaseless 0551c7b82b use uv 2024-12-08 16:49:38 +00:00
ThePhaseless b483dba080 [skip ci] Mili to Mega 2024-12-02 10:29:13 +01:00
ThePhaseless 7533d039ac Merge pull request #30 from ThePhaseless/renovate/python-3.x
Update python Docker tag to v3.13
2024-11-30 14:26:22 +01:00
renovate[bot] 38b2ea0798 Update python Docker tag to v3.13 2024-11-30 12:59:43 +00:00
ThePhaseless 58ae7964df remove python action update script 2024-11-30 12:59:00 +00:00
ThePhaseless 5283fb2d0e exclude python from autoupdate 2024-11-30 12:58:02 +00:00
ThePhaseless b3e7662782 fix ruff 2024-11-30 12:48:04 +00:00
ThePhaseless 074a3dd712 [skip ci] fix renovate 2024-11-30 12:47:34 +00:00
ThePhaseless cb48f16370 update python version in action with base 2024-11-30 12:45:19 +00:00
ThePhaseless 637de7572d use latest cosign 2024-11-30 12:44:08 +00:00
ThePhaseless 7b55252a73 run ruff before tests 2024-11-30 12:43:56 +00:00
ThePhaseless cbe4cf57a5 use all urls always 2024-11-30 12:43:05 +00:00
ThePhaseless 0775d107ad add version control and more verbose error return 2024-11-30 12:42:51 +00:00
ThePhaseless d36972b80e update python in action 2024-11-30 12:42:17 +00:00
renovate[bot] 27ec17f7f2 Update dependency seleniumbase to v4.33.2 (#24)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-30 12:08:29 +00:00
ThePhaseless 0b2bf9e12a use dynamic driver symlink 2024-11-30 11:38:48 +00:00
renovate[bot] 8c6906c916 Update dependency ruff to v0.8.1 (#29)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-29 06:26:30 +00:00
renovate[bot] 3103051ccf Update dependency httpx to ^0.28.0 (#28)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-11-28 18:20:06 +00:00
ThePhaseless 8551bdfef8 Merge pull request #25 from ThePhaseless/renovate/docker-build-push-action-6.x
Update docker/build-push-action action to v6.10.0
2024-11-28 14:06:45 +01:00
renovate[bot] cdebe4be0e Update docker/build-push-action action to v6.10.0 2024-11-28 13:06:36 +00:00
ThePhaseless 543296ce68 update lockfile 2024-11-28 12:56:09 +00:00
ThePhaseless 7210ae4bc0 add and ignore pyautogui 2024-11-28 12:55:55 +00:00
ThePhaseless f782e1bed6 Create LICENSE 2024-11-28 13:40:46 +01:00
ThePhaseless 49329ec950 update lockfile 2024-11-28 12:35:29 +00:00
ThePhaseless 2ae289ef0c use renovate instead of dependabot 2024-11-28 12:33:04 +00:00
ThePhaseless 8ef570ec46 separate depedencies and fill out details 2024-11-28 12:32:55 +00:00
ThePhaseless e899f8d5ac Merge pull request #23 from ThePhaseless/renovate/configure
Configure Renovate
2024-11-28 13:28:06 +01:00
renovate[bot] ab0e7f9e43 Add renovate.json 2024-11-28 12:27:27 +00:00
ThePhaseless d26974e22a [skip ci] Add example issues for NAS devices 2024-11-26 21:15:34 +01:00
ThePhaseless 994dcb2dc4 add manual build 2024-11-26 18:18:02 +00:00
ThePhaseless 0d4d5093ca [skip ci] update readme and bug report 2024-11-26 17:56:10 +00:00
ThePhaseless fd8c7156fd use async test 2024-11-26 17:43:25 +00:00
ThePhaseless 39a5045836 Use httpstatus code 2024-11-26 12:20:03 +00:00
ThePhaseless 6dc1133daf switch to bullseye to fix chromium not launching on arm 2024-11-26 12:19:52 +00:00
ThePhaseless 794ebdf00e add cache, pip, progress and fix bypass 2024-11-25 10:55:40 +00:00
ThePhaseless c366ce7db6 add healthcheck 2024-11-25 10:19:09 +00:00
ThePhaseless 00e443a5eb retry failed tests 3 times 2024-11-25 09:55:46 +00:00
ThePhaseless b9f3153689 add shebang 2024-11-25 09:54:19 +00:00
ThePhaseless 4453fa6a93 use sh file as cmd 2024-11-25 09:26:14 +00:00
ThePhaseless c40ad328f1 Merge pull request #21 from ThePhaseless/dependabot/github_actions/dot-github/workflows/docker/metadata-action-5.6.1
Bump docker/metadata-action from 5.5.1 to 5.6.1 in /.github/workflows
2024-11-25 10:09:25 +01:00
dependabot[bot] 428fbd4b24 Bump docker/metadata-action from 5.5.1 to 5.6.1 in /.github/workflows
Bumps [docker/metadata-action](https://github.com/docker/metadata-action) from 5.5.1 to 5.6.1.
- [Release notes](https://github.com/docker/metadata-action/releases)
- [Commits](https://github.com/docker/metadata-action/compare/8e5442c4ef9f78752691e2d8f8d19755c6f78e81...369eb591f429131d6889c46b94e711f089e6ca96)

---
updated-dependencies:
- dependency-name: docker/metadata-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-11-25 07:46:10 +00:00
ThePhaseless 471f17a0d3 Merge pull request #20 from ThePhaseless/seleniumbase
Seleniumbase
2024-11-25 00:07:12 +01:00
ThePhaseless c81b93a161 add title parsing 2024-11-24 23:04:19 +00:00
ThePhaseless f2532385d6 run test on x64 and build with buildx 2024-11-24 22:50:04 +00:00
ThePhaseless 8d9f433aca use chromium 2024-11-24 22:28:08 +00:00
ThePhaseless 52ad4c74c7 add xvfb to devcontainer 2024-11-24 22:27:01 +00:00
ThePhaseless b64ff25ad2 build on arm 2024-11-24 22:17:35 +00:00
ThePhaseless 8b9ef2604a fix dockerfile and add arm for testing 2024-11-24 22:13:47 +00:00
ThePhaseless 57dbc43697 add sudo 2024-11-24 22:02:28 +00:00
ThePhaseless 77fd2a47f7 remaster 2024-11-24 22:00:58 +00:00
ThePhaseless 0e75f2a3d1 cleanup devcontainer 2024-11-24 20:14:04 +00:00
ThePhaseless d0a1489898 spellcheck fixes 2024-11-24 12:29:06 +00:00
ThePhaseless 583f5fcebc Merge pull request #17 from Vrtak-CZ/log-err
log error when exception
2024-11-23 11:38:20 +01:00
Patrik Votoček 3c25ce471b log error when exception 2024-11-22 02:16:59 +01:00
ThePhaseless b01ee50444 skip tests on github arm 2024-11-21 22:59:27 +00:00
ThePhaseless f117e4705a add platform label 2024-11-21 22:38:34 +00:00
ThePhaseless b19b1b852c add armv8 2024-11-21 22:33:47 +00:00
ThePhaseless 70d78859ad add platform 2024-11-21 22:00:38 +00:00
ThePhaseless f5c3cae846 use latest package versions 2024-10-28 17:20:37 +00:00
ThePhaseless db18c01f51 Update bug_report.md 2024-10-27 20:14:34 +01:00
ThePhaseless 3991a0bceb Update issue templates 2024-10-27 20:11:56 +01:00
ThePhaseless 88abca13c5 Update README.md 2024-10-27 20:03:07 +01:00
ThePhaseless 3b7f501404 Add info about conditional passing and updated troubleshooting 2024-10-27 20:01:09 +01:00
ThePhaseless e41c831c73 separated github dependent websites 2024-10-27 18:46:19 +00:00
ThePhaseless c409ca22f9 remove untestable websites from github 2024-10-27 18:43:36 +00:00
ThePhaseless 8e5b7061e8 test if cloudflare blocks after 2 requests 2024-10-27 18:40:21 +00:00
ThePhaseless aabff0a65f do not skip challenged 2024-10-27 18:32:06 +00:00
ThePhaseless 58f230dce3 first stop, then throw exception 2024-10-27 19:13:15 +01:00
ThePhaseless 0535c5d9bd add logger even if passing 2024-10-21 13:46:26 +00:00
ThePhaseless d26ddf3bcf add healthcheck 2024-10-21 13:34:07 +00:00
ThePhaseless 361e11cda2 skip if test if client cant reach 2024-10-21 13:19:31 +00:00
ThePhaseless e33d7ab77b fix addon passing all websites 2024-10-21 13:12:09 +00:00
ThePhaseless 4e3876e0b7 skip test if rate limited 2024-10-19 21:47:16 +00:00
ThePhaseless f4dcaf453e dont use async tests 2024-10-19 20:55:03 +00:00
ThePhaseless 95b5b1375f path fixes 2024-10-19 20:49:50 +00:00
ThePhaseless b3d7060431 async tests 2024-10-19 20:48:32 +00:00
ThePhaseless 2dfc5b2201 refactor and test in dockerfile 2024-10-19 20:35:11 +00:00
ThePhaseless 55a557468e add display to env 2024-10-18 16:52:19 +00:00
ThePhaseless 2da2d08718 fix run sh 2024-10-18 16:47:31 +00:00
ThePhaseless a12594b11a move to entrypoint 2024-10-18 16:43:41 +00:00
ThePhaseless 8c249fbbbd Merge pull request #6 from ThePhaseless/chromium
Chromium
2024-10-18 18:35:05 +02:00
ThePhaseless 8b0caf6adc dont test (fck it) 2024-10-18 16:33:27 +00:00
ThePhaseless dbc91bc982 reduce max time to 30 sec 2024-10-18 16:03:17 +00:00
ThePhaseless e0a2a2a035 update packages and new build method 2024-10-18 15:59:52 +00:00
ThePhaseless 5003544d5b handle rate limiting 2024-10-18 15:53:36 +00:00
ThePhaseless a2fd8a056b use only new click method 2024-10-18 15:53:36 +00:00
ThePhaseless 4bc53e5311 add sysadmin for devcontainer 2024-10-18 15:53:36 +00:00
ThePhaseless 23a5d53e9a do not test on arm 2024-10-18 15:53:36 +00:00
ThePhaseless b924d27d26 typo fix 2024-10-18 15:53:36 +00:00
ThePhaseless ca80bd0285 logic refactor 2024-10-18 15:53:36 +00:00
ThePhaseless 464a618f29 print current html on error 2024-10-18 15:53:36 +00:00
ThePhaseless 093d318dbc add default display 2024-10-18 15:53:36 +00:00
ThePhaseless d452d43ee8 do not override previous 2024-10-18 15:53:36 +00:00
ThePhaseless b7f9c1467c upload screenshot if action failed 2024-10-18 15:53:36 +00:00
ThePhaseless 2e819c9adf skip if rate limited 2024-10-18 15:53:36 +00:00
ThePhaseless d77dc06b35 add exception handling 2024-10-18 15:53:36 +00:00
ThePhaseless 29a5432684 increase timeout in tests 2024-10-18 15:53:36 +00:00
ThePhaseless b204acb826 update lock file 2024-10-18 15:53:36 +00:00
ThePhaseless 8a90428f4b update troubleshooting 2024-10-18 15:53:36 +00:00
ThePhaseless 5424ea0ab7 remove pytest from entrypoint 2024-10-18 15:53:36 +00:00
ThePhaseless 718e6da2b6 fix devcontainer 2024-10-18 15:53:36 +00:00
ThePhaseless 60bf8332d0 remake dockerfile 2024-10-18 15:53:36 +00:00
ThePhaseless d2f7f3448d auto python version 2024-10-18 15:53:36 +00:00
ThePhaseless 7d530daf88 Merge pull request #8 from ThePhaseless/dependabot/github_actions/dot-github/workflows/docker/setup-buildx-action-3.7.1
Bump docker/setup-buildx-action from 3.0.0 to 3.7.1 in /.github/workflows
2024-10-18 17:51:30 +02:00
ThePhaseless 7dc16dfe7c Merge pull request #9 from ThePhaseless/dependabot/github_actions/dot-github/workflows/sigstore/cosign-installer-3.7.0
Bump sigstore/cosign-installer from 3.5.0 to 3.7.0 in /.github/workflows
2024-10-18 17:51:26 +02:00
ThePhaseless 87db1a3955 Merge pull request #10 from ThePhaseless/dependabot/github_actions/dot-github/workflows/docker/login-action-3.3.0
Bump docker/login-action from 3.0.0 to 3.3.0 in /.github/workflows
2024-10-18 17:51:20 +02:00
ThePhaseless bf0648e49b Merge pull request #11 from ThePhaseless/dependabot/github_actions/dot-github/workflows/docker/metadata-action-5.5.1
Bump docker/metadata-action from 5.0.0 to 5.5.1 in /.github/workflows
2024-10-18 17:51:15 +02:00
ThePhaseless 70b75f4db4 Merge pull request #7 from ThePhaseless/dependabot/github_actions/dot-github/workflows/docker/build-push-action-6.9.0
Bump docker/build-push-action from 5.0.0 to 6.9.0 in /.github/workflows
2024-10-18 17:51:06 +02:00
dependabot[bot] 2ab91102b0 Bump docker/metadata-action from 5.0.0 to 5.5.1 in /.github/workflows
Bumps [docker/metadata-action](https://github.com/docker/metadata-action) from 5.0.0 to 5.5.1.
- [Release notes](https://github.com/docker/metadata-action/releases)
- [Commits](https://github.com/docker/metadata-action/compare/96383f45573cb7f253c731d3b3ab81c87ef81934...8e5442c4ef9f78752691e2d8f8d19755c6f78e81)

---
updated-dependencies:
- dependency-name: docker/metadata-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-18 15:50:46 +00:00
dependabot[bot] 5c87b29599 Bump docker/login-action from 3.0.0 to 3.3.0 in /.github/workflows
Bumps [docker/login-action](https://github.com/docker/login-action) from 3.0.0 to 3.3.0.
- [Release notes](https://github.com/docker/login-action/releases)
- [Commits](https://github.com/docker/login-action/compare/343f7c4344506bcbf9b4de18042ae17996df046d...9780b0c442fbb1117ed29e0efdff1e18412f7567)

---
updated-dependencies:
- dependency-name: docker/login-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-18 15:50:44 +00:00
dependabot[bot] 76a93f44a1 Bump sigstore/cosign-installer from 3.5.0 to 3.7.0 in /.github/workflows
Bumps [sigstore/cosign-installer](https://github.com/sigstore/cosign-installer) from 3.5.0 to 3.7.0.
- [Release notes](https://github.com/sigstore/cosign-installer/releases)
- [Commits](https://github.com/sigstore/cosign-installer/compare/59acb6260d9c0ba8f4a2f9d9b48431a222b68e20...dc72c7d5c4d10cd6bcb8cf6e3fd625a9e5e537da)

---
updated-dependencies:
- dependency-name: sigstore/cosign-installer
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-18 15:50:41 +00:00
dependabot[bot] 9dff932766 Bump docker/setup-buildx-action in /.github/workflows
Bumps [docker/setup-buildx-action](https://github.com/docker/setup-buildx-action) from 3.0.0 to 3.7.1.
- [Release notes](https://github.com/docker/setup-buildx-action/releases)
- [Commits](https://github.com/docker/setup-buildx-action/compare/f95db51fddba0c2d1ec667646a06c2ce06100226...c47758b77c9736f4b2ef4073d4d51994fabfe349)

---
updated-dependencies:
- dependency-name: docker/setup-buildx-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-18 15:50:39 +00:00
dependabot[bot] 749fab3ff1 Bump docker/build-push-action from 5.0.0 to 6.9.0 in /.github/workflows
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 5.0.0 to 6.9.0.
- [Release notes](https://github.com/docker/build-push-action/releases)
- [Commits](https://github.com/docker/build-push-action/compare/0565240e2d4ab88bba5387d719585280857ece09...4f58ea79222b3b9dc2c8bbdd6debcef730109a75)

---
updated-dependencies:
- dependency-name: docker/build-push-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-10-18 15:50:37 +00:00
ThePhaseless 77290081b7 update actions 2024-10-18 15:49:50 +00:00
ThePhaseless 843fe88e5a build arm64 2024-10-18 13:17:19 +02:00
ThePhaseless 0c2206911d grammar 2024-10-01 11:22:12 +02:00
ThePhaseless cbce34366b update ports 2024-10-01 11:07:13 +02:00
ThePhaseless 29a31ab757 Add troubeshooting steps 2024-10-01 11:03:07 +02:00
ThePhaseless ee9e8ca98f disable invalid websites 2024-09-13 19:22:37 +00:00
ThePhaseless e25415012a quick check 2024-09-13 19:13:37 +00:00
ThePhaseless b518904196 change the discovery of shadow dom 2024-09-13 19:07:43 +00:00
ThePhaseless a633a91dcf tweaks 2024-09-13 19:00:20 +00:00
ThePhaseless 22fba55373 adjustments 2024-09-13 18:48:31 +00:00
ThePhaseless 6e825e15a4 use python 3.12 2024-09-13 18:40:34 +00:00
ThePhaseless ac4eadea9d test in dockerfile 2024-09-13 18:30:48 +00:00
ThePhaseless 0d79b22ceb build if tests pass 2024-09-13 18:30:14 +00:00
ThePhaseless d8d92ec3de use fastapi to test 2024-09-13 18:28:36 +00:00
ThePhaseless 79fb20082f add timed tests 2024-09-13 18:04:37 +00:00
ThePhaseless 2844f51fb1 fix new issue 2024-09-13 18:04:22 +00:00
ThePhaseless 092b9fb492 add test deps 2024-09-13 18:04:13 +00:00
ThePhaseless b1a67da658 update packages 2024-09-13 18:04:01 +00:00
ThePhaseless 40b790ceee fix deprecation 2024-09-13 18:03:38 +00:00
ThePhaseless 312ea474d9 switch to python 3.12 2024-09-13 18:03:09 +00:00
ThePhaseless 98719476c4 use shadow roots and fix HTTP request failed: [500:InternalServerError] #2 2024-08-25 15:24:27 +00:00
ThePhaseless e05c34aa8a format 2024-08-25 15:11:03 +00:00
ThePhaseless 76502ee508 add docker labels 2024-07-25 21:07:10 +00:00
ThePhaseless fb905a251a add github extention parsing and use clean approach 2024-07-25 21:01:22 +00:00
ThePhaseless ed71354e19 refactor + docstrings 2024-07-25 21:00:31 +00:00
ThePhaseless 8c8b7e3324 add gracefull errors 2024-07-25 21:00:11 +00:00
ThePhaseless d9c26877ec [skip ci] Update README.md 2024-07-25 14:46:36 +02:00
ThePhaseless d377d63400 ensure caps for loglevel 2024-07-25 01:17:40 +00:00
ThePhaseless 7c61d37ea8 [skip ci] Added info about versioning 2024-07-25 01:04:59 +00:00
ThePhaseless 3fa2b49b6d [skip ci] Updated header 2024-07-25 01:03:12 +00:00
ThePhaseless 1d9740cdd8 [skip ci] Add more info 2024-07-25 01:02:04 +00:00
ThePhaseless d5a1680b4e [skip ci] remove screenshots volume 2024-07-25 01:01:49 +00:00
ThePhaseless 58200970de [skip ci] Create readme 2024-07-25 00:52:06 +00:00
ThePhaseless 8311b7b148 remove screenshots, improve logging and add timeout for button 2024-07-25 00:39:29 +00:00
ThePhaseless 86fd1e2c5f bring tab to front 2024-07-25 00:39:06 +00:00
ThePhaseless bccd8c8401 add browser crash gitignore 2024-07-25 00:38:55 +00:00
ThePhaseless 51f01e2f97 Create docker-publish.yml 2024-07-25 02:08:26 +02:00
ThePhaseless 7a47e446a0 packages cleanup 2024-07-25 00:07:23 +00:00
ThePhaseless 9808c42a8a use venv in proj 2024-07-25 00:07:18 +00:00
ThePhaseless f4c13957bf remove novnc 2024-07-25 00:07:08 +00:00
ThePhaseless 25d708de01 use const for logging level 2024-07-25 00:06:56 +00:00
ThePhaseless 6e45f4c316 adjust file path checking 2024-07-25 00:04:22 +00:00
ThePhaseless 4f225438a7 final touches 2024-07-25 00:04:00 +00:00
ThePhaseless eaf83e62ff uncomment dockerfile 2024-07-24 23:09:03 +00:00
ThePhaseless 336d20a3a5 added virtual desktop 2024-07-24 23:00:51 +00:00
ThePhaseless 6c124dcfd0 expose novnc 2024-07-24 23:00:15 +00:00
ThePhaseless 2ad7ee262e fix arg 2024-07-24 23:00:07 +00:00
ThePhaseless 75bac7e203 swtich to dummy test 2024-07-24 20:42:23 +00:00
ThePhaseless 8501e28f85 fix downloading 2024-07-24 20:42:06 +00:00
ThePhaseless 3682ccc0fa changed to path type 2024-07-24 20:41:57 +00:00
ThePhaseless b0c8d5d387 fix logger 2024-07-24 20:41:15 +00:00
ThePhaseless 8c428276d6 add debug for debugging 2024-07-24 20:41:01 +00:00
ThePhaseless 003e7d0139 expose port for solverr 2024-07-24 20:39:30 +00:00
ThePhaseless 2d1b2964af get lib path from env 2024-07-24 20:39:10 +00:00
ThePhaseless 427c758de6 added screenshots and debug env 2024-07-24 20:38:23 +00:00
ThePhaseless 031235dba1 change project name 2024-07-24 20:37:39 +00:00
ThePhaseless 2a3a76b6ef fix chromium download on devcontainer 2024-07-24 17:51:35 +00:00
ThePhaseless 104ef5968a use default folder 2024-07-24 17:51:26 +00:00
ThePhaseless 2341ad5887 docker and example usage 2024-07-24 17:51:01 +00:00
ThePhaseless a5c2355f21 ensure venv in project 2024-07-24 17:50:47 +00:00
ThePhaseless d3617797e6 added script that fixes nodriver 2024-07-24 17:15:13 +00:00
ThePhaseless e449a183ae allow more types in cookies 2024-07-24 15:53:14 +00:00
ThePhaseless 335e9e486f move to dockerfile instead of compose 2024-07-24 15:53:02 +00:00
ThePhaseless 70cb18ae81 ignore explicit return type 2024-07-24 15:52:41 +00:00
ThePhaseless d8fb8feaeb create base dockerfile 2024-07-24 15:52:30 +00:00
ThePhaseless 4831e1247b Add override initial url 2024-07-24 15:41:41 +00:00
ThePhaseless 87ee96ef5c use preferred method for cookies (stuck) 2024-07-24 15:41:37 +00:00
ThePhaseless 2a50a019e1 fix string path 2024-07-24 15:41:20 +00:00
ThePhaseless 0ddf1e03c0 added default logger 2024-07-24 15:16:46 +00:00
ThePhaseless b6c51470ff remove extentions from repo 2024-07-24 13:59:07 +00:00
ThePhaseless 640a4bd8d8 first commit 2024-07-24 13:57:40 +00:00
18 changed files with 1046 additions and 1185 deletions
+1 -5
View File
@@ -9,11 +9,7 @@
"runArgs": ["--security-opt", "label=disable", "--privileged"],
"customizations": {
"vscode": {
"extensions": [
"charliermarsh.ruff",
"ms-python.python",
"tamasfe.even-better-toml"
],
"extensions": ["charliermarsh.ruff", "ms-python.python"],
"settings": {
"python.venvPath": "./venv"
}
+2 -12
View File
@@ -9,13 +9,10 @@ body:
label: "I've completed the following steps:"
options:
- label: Read Loop Warning on Readme
- label: "Used --init/init: true in docker run/compose.yaml"
- label: Done the troubleshooting from Readme
- label: Checked if such issue already exists
- label: Checked other websites with Cloudflare Turnstile
- label: I am able to access the webpage from my browser
- label: (Docker only) Checked that the problem does also occur on main tag
- type: checkboxes
attributes:
label: "If checked other websites with Cloudflare Turnstile:"
@@ -23,18 +20,11 @@ body:
- label: Other websites do work.
- label: Other websites do not work.
- type: checkboxes
attributes:
label: "The issue is still present in the latest main tag:"
options:
- label: "Yes"
- label: "No"
- type: input
id: docker-host
attributes:
label: OS/Docker Host
placeholder: e.g. Docker, WSL2, Ubuntu, Windows
placeholder: e.g. Docker, WSL2, Ubuntu, Windows
- type: input
id: platform-model
@@ -59,7 +49,7 @@ body:
label: Describe the bug
description: A clear and concise description of what the bug is.
placeholder: "Example: The application crashes when trying to load a new file"
- type: textarea
id: config
attributes:
-107
View File
@@ -1,107 +0,0 @@
name: Cleanup PR Docker Images
on:
pull_request:
types: [closed]
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
cleanup:
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- name: Delete PR Docker images
uses: actions/github-script@v8
with:
script: |
const owner = context.repo.owner.toLowerCase();
const repo = context.repo.repo.toLowerCase();
const prNumber = context.payload.pull_request.number;
// Get the package
const packageName = `${repo}`;
console.log(`Cleaning up images for PR #${prNumber}`);
// Check if owner is an org or user
let isOrg = false;
try {
await github.rest.orgs.get({ org: owner });
isOrg = true;
console.log(`Repository owner is an organization`);
} catch (error) {
console.log(`Repository owner is a user account`);
}
try {
// Get all versions of the package
let versions;
if (isOrg) {
versions = await github.rest.packages.getAllPackageVersionsForPackageOwnedByOrg({
package_type: 'container',
package_name: packageName,
org: owner,
per_page: 100
});
} else {
versions = await github.rest.packages.getAllPackageVersionsForPackageOwnedByUser({
package_type: 'container',
package_name: packageName,
username: owner,
per_page: 100
});
}
// Filter versions that match this PR (pr-123, pr-123-amd64, pr-123-arm64)
const prVersions = versions.data.filter(version => {
const tags = version.metadata?.container?.tags || [];
// Match tags like: pr-123, pr-123-amd64, pr-123-arm64
return tags.some(tag =>
tag === `pr-${prNumber}` ||
tag === `pr-${prNumber}-amd64` ||
tag === `pr-${prNumber}-arm64`
);
});
console.log(`Found ${prVersions.length} image version(s) to delete`);
// Delete each version
for (const version of prVersions) {
console.log(`Deleting version ${version.id} with tags: ${version.metadata?.container?.tags?.join(', ')}`);
try {
if (isOrg) {
await github.rest.packages.deletePackageVersionForOrg({
package_type: 'container',
package_name: packageName,
org: owner,
package_version_id: version.id
});
} else {
await github.rest.packages.deletePackageVersionForUser({
package_type: 'container',
package_name: packageName,
username: owner,
package_version_id: version.id
});
}
console.log(`✓ Deleted version ${version.id}`);
} catch (error) {
console.error(`Failed to delete version ${version.id}:`, error.message);
}
}
console.log('Cleanup completed');
} catch (error) {
if (error.status === 404) {
console.log('No package found - nothing to clean up');
} else {
console.error('Error during cleanup:', error.message);
throw error;
}
}
+21 -52
View File
@@ -12,26 +12,8 @@ on:
branches: ["*"]
# Publish semver tags as releases.
tags: ["v*.*.*"]
paths:
- "src/**"
- "main.py"
- "tests/**"
- "Dockerfile"
- "pyproject.toml"
- "uv.lock"
- "compose.yaml"
- ".github/workflows/docker-publish.yml"
pull_request:
branches: ["main"]
paths:
- "src/**"
- "main.py"
- "tests/**"
- "Dockerfile"
- "pyproject.toml"
- "uv.lock"
- "compose.yaml"
- ".github/workflows/docker-publish.yml"
workflow_dispatch:
env:
@@ -54,14 +36,14 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@v5
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
uses: docker/setup-buildx-action@v3
- name: Test
id: test
uses: docker/build-push-action@v7
uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64
@@ -72,8 +54,6 @@ jobs:
build:
needs: test
# Skip build for Renovate PRs
if: github.event.pull_request.user.login != 'renovate[bot]'
runs-on: ubuntu-latest
permissions:
contents: read
@@ -86,31 +66,26 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@v5
- name: Prepare variables
id: vars
run: |
SURFIX=$(echo ${{ matrix.platform }} | cut -d'/' -f2)
echo "SURFIX=$SURFIX" >> $GITHUB_OUTPUT
# Use PR number for PRs, SHA for everything else
if [ "${{ github.event_name }}" == "pull_request" ]; then
echo "LOCAL_TAG=pr-${{ github.event.pull_request.number }}-$SURFIX" >> $GITHUB_OUTPUT
else
echo "LOCAL_TAG=${{ github.sha }}-$SURFIX" >> $GITHUB_OUTPUT
fi
# Generate a unique local tag for the image
echo "LOCAL_TAG=${{ github.sha }}-$SURFIX" >> $GITHUB_OUTPUT
- name: Set up QEMU
uses: docker/setup-qemu-action@v4
uses: docker/setup-qemu-action@v3
# Set up BuildKit Docker container builder
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
uses: docker/setup-buildx-action@v3
# Log into registry
- name: Log into registry ${{ env.REGISTRY }}
uses: docker/login-action@v4
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
@@ -119,19 +94,19 @@ jobs:
# Extract metadata (tags, labels) for Docker
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v6
uses: docker/metadata-action@v5
with:
tags: type=raw,value=${{ steps.vars.outputs.LOCAL_TAG }}
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
# Build and push Docker image for each platform
# Build and export Docker image for each platform (without pushing)
- name: Build Docker image
id: build
uses: docker/build-push-action@v7
uses: docker/build-push-action@v6
with:
context: .
pull: true
push: true
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
platforms: ${{ matrix.platform }}
@@ -144,6 +119,7 @@ jobs:
merge-and-push:
needs: build
runs-on: ubuntu-latest
if: github.event_name != 'pull_request'
permissions:
contents: read
packages: write
@@ -151,7 +127,7 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@v6
uses: actions/checkout@v5
# Install the cosign tool
- name: Install cosign
@@ -159,11 +135,11 @@ jobs:
# Set up Docker Buildx
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
uses: docker/setup-buildx-action@v3
# Log into registry
- name: Log into registry ${{ env.REGISTRY }}
uses: docker/login-action@v4
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
@@ -172,7 +148,7 @@ jobs:
# Extract Docker metadata for tagging
- name: Extract Docker metadata
id: meta
uses: docker/metadata-action@v6
uses: docker/metadata-action@v5
with:
tags: |
type=ref,event=branch
@@ -202,16 +178,9 @@ jobs:
echo $args
# Use PR-based tags for PRs, SHA-based tags for everything else
if [ "${{ github.event_name }}" == "pull_request" ]; then
docker buildx imagetools create $args \
${image}:pr-${{ github.event.pull_request.number }}-amd64 \
${image}:pr-${{ github.event.pull_request.number }}-arm64
else
docker buildx imagetools create $args \
${image}:${{github.sha}}-amd64 \
${image}:${{github.sha}}-arm64
fi
docker buildx imagetools create $args \
${image}:${{github.sha}}-amd64 \
${image}:${{github.sha}}-arm64
# Sign the manifest
- name: Sign the manifests
-37
View File
@@ -1,37 +0,0 @@
# Copilot Instructions
## Project overview
- FastAPI service that mimics FlareSolverr-style API for bypassing anti-bot pages using Camoufox + Playwright captcha solver.
- Entry point: main app in main.py; routes and request flow defined in src/endpoints.py and src/models.py.
- Browser lifecycle is owned by get_camoufox() in src/utils.py, which yields a page, solver, and context for each request.
## Architecture and data flow
- Request flow: POST /v1 -> read_item() -> browser.goto() -> wait for load states -> detect challenge title -> solve captcha -> return LinkResponse.
- Challenge detection uses CHALLENGE_TITLES from src/consts.py; update this map when adding providers.
- Health check hits /v1 internally with <https://google.com> and fails if status is not OK.
- Logging: LogRequest middleware logs only POST /v1 timing and outcome; other paths pass through.
## Key modules and patterns
- Models use Pydantic v2 with camelCase aliasing for responses (see src/models.py).
- LinkResponse.invalid() is the standard error response shape; keep fields consistent with FlareSolverr style.
- get_camoufox() constructs AsyncCamoufox with addons and optional proxy config from env vars.
## Config and environment
- Core env vars in src/consts.py: HOST, PORT, PROXY_SERVER, PROXY_USERNAME, PROXY_PASSWORD, LOG_LEVEL, VERSION.
- VERSION strips leading "v" for tag-style values.
## Developer workflows
- Local run: uv sync && uv run main.py
- Init mode: uv run main.py --init (pre-warms health check via browser setup)
- Tests: uv sync --group test && uv run pytest --retries 3
- Docker troubleshooting: docker build --target test .
## Tests and external dependencies
- tests/main_test.py calls real websites; tests are network-dependent and may be skipped based on upstream status.
- HTTP client tests use starlette.testclient + httpx; avoid mocking unless needed for local-only changes.
+21 -40
View File
@@ -1,5 +1,5 @@
# Ubuntu is required by playwright
FROM ubuntu:latest AS base
FROM debian:stable-slim AS base
ENV HOME=/root
ARG GITHUB_BUILD=false \
VERSION
@@ -11,51 +11,32 @@ ENV GITHUB_BUILD=${GITHUB_BUILD}\
# prevents python creating .pyc files
PYTHONDONTWRITEBYTECODE=1 \
UV_LINK_MODE=copy \
PORT=8191 \
XDG_CACHE_HOME=/cache \
HOME=/tmp
PATH="${HOME}/.local/bin:$PATH"
RUN apt-get update &&\
apt-get install -y --no-install-recommends curl ca-certificates &&\
apt-get clean &&\
rm -rf /var/lib/apt/lists/*
COPY --from=ghcr.io/astral-sh/uv:latest /uv /uvx /bin/
FROM base AS devcontainer
RUN apt-get update &&\
apt-get install -y --no-install-recommends git &&\
uvx playwright install-deps firefox &&\
uvx camoufox fetch &&\
apt-get clean &&\
rm -rf /var/lib/apt/lists/*
ENTRYPOINT [ "sleep", "infinity" ]
FROM base AS app
WORKDIR /app
RUN apt update && apt -y upgrade && apt install -y curl
ADD https://astral.sh/uv/install.sh install.sh
RUN sh install.sh && uv --version
RUN uvx playwright install-deps firefox && uvx camoufox fetch
FROM base AS devcontainer
RUN apt install -y git
ENTRYPOINT [ "sleep", "infinity" ]
FROM base AS app
COPY pyproject.toml uv.lock ./
RUN mkdir -p /cache &&\
uv sync &&\
uv run camoufox fetch &&\
apt-get update &&\
uv run playwright install-deps firefox &&\
uv cache clean &&\
apt-get clean &&\
rm -rf /var/lib/apt/lists/*
RUN --mount=type=cache,target=${HOME}/.cache/uv uv sync
COPY . .
# Make app and cache world-readable; addon scripts dir world-writable (runtime writes)
RUN chmod -R o+rX /app /cache &&\
find /app/.venv -path "*/camoufox_add_init_script/addon" -type d -exec chmod -R o+rwX {} +
FROM app AS test
RUN \
uv sync --group test &&\
uv run pytest --retries 3
RUN --mount=type=cache,target=${HOME}/.cache/uv uv sync --group test
RUN uv run pytest --retries 3 -n auto
FROM app
USER 1000
EXPOSE $PORT
HEALTHCHECK --interval=15m --timeout=30s --start-period=5s --retries=3 CMD curl "http://localhost:${PORT}/health"
ENTRYPOINT ["/app/.venv/bin/python", "main.py"]
EXPOSE 8191
HEALTHCHECK --interval=15m --timeout=30s --start-period=5s --retries=3 CMD [ "curl", "http://localhost:8191/health" ]
ENTRYPOINT ["uv", "run", "main.py"]
+44 -53
View File
@@ -1,21 +1,44 @@
# Byparr
<p align="center">
<img src="icon/logo-byparr.svg" alt="Byparr logo" width="120" />
</p>
Built with [camoufox](https://camoufox.com/) and [FastAPI](https://fastapi.tiangolo.com), this project aims to mimic [FlareSolverr's](https://github.com/FlareSolverr/FlareSolverr) API and functionality of providing you with http cookies and headers for websites protected with anti-bot protections.
> [!IMPORTANT]
> This software does not **guarantee** (only greatly increases the chance) that any challenge will be bypassed. While this tool passes the initial browser check, Cloudflare and other captcha providers likely require valid network traffic originating from the user’s public IP address to mark a connection as legitimate. If any website does not pass the challenge, please run troubleshooting steps and check if other websites work before you create an GitHub issue.
> [!IMPORTANT]
> 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)
> [!NOTE]
> Thanks to FastAPI implementation, now you can also see the API documentation at `/docs` or `/` (redirect to `/docs`) endpoints.
## Troubleshooting
### Docker
1. Clone repo to the host that has issues with Byparr.
2. Run `docker build --target test .`
3. Depending of the build success:
1. If run successfully, try updating container or if already on newest stable release create an issue for creating new release with new dependencies
2. If build fails, try troubleshooting on another host/using other method
### Local
1. Download [uv](https://docs.astral.sh/uv/getting-started/installation/)
2. Download dependencies using `uv sync --group test`
3. Run tests with `uv run pytest --retries 3` (You can add `-n auto` for parallelization)
4. If you see any `F` character in terminal, that means test failed even after retries.
5. Depending of the test success:
1. If run successfully, try updating container or if already on newest stable release create an issue for creating new release with new dependencies
2. If test fails, try troubleshooting on another host/using other method
## Options
| Environment Variable | Default | Description |
| -------------------- | --------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `HOST` | `0.0.0.0` | Host address to bind the server to. Use `0.0.0.0` to bind to all IPv4 interfaces, `::` for all IPv6 interfaces, or `127.0.0.1`/`localhost` for local access only. |
| `PORT` | `8191` | Port to bind the server to. |
| `PROXY_SERVER` | None | Proxy to use in format: `protocol://host:port`. |
| `PROXY_USERNAME` | None | Username for proxy authentication. |
| `PROXY_PASSWORD` | None | Password for proxy authentication. |
| `PROXY_USERNAME` | None | |
| `PROXY_PASSWORD` | None | |
## Proxy Recommendation
@@ -25,62 +48,30 @@ Recently I've partnered with a _new in town_ proxy service - ProxyBase - to offe
- `v*.*.*`/`latest` - Releases considered stable
- `main` - Latest release from main branch (untested)
- `pr-{number}` - Pull request images for testing (automatically cleaned up when PR closes)
## Usage
> [!IMPORTANT]
> 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)
### Docker Compose
### Docker Compose setup
See `compose.yaml`
1. Review settings in `compose.yaml`.
2. Start the service:
### Docker
```bash
docker compose up -d
docker run -p 8191:8191 ghcr.io/thephaseless/byparr:latest
```
### Docker install
### Local
1. Pull and run the image:
```bash
uv sync && uv run main.py
```
```bash
docker run -p 8191:8191 ghcr.io/thephaseless/byparr:latest
```
## Need help with / TODO
2. Optional: set env vars using `-e` or `--env-file`.
### Local install
1. Install ([or update when Python version changes](https://github.com/astral-sh/uv/issues/17887)) [uv](https://docs.astral.sh/uv/getting-started/installation/).
2. Clone this repo - `git clone https://github.com/ThePhaseless/Byparr`
3. Run `uv run main.py`
4. Enjoy!
### API Docs
Once running, open:
- `http://localhost:8191/docs`
- `http://localhost:8191/` (redirects to `/docs`)
## Troubleshooting
### Docker troubleshooting
1. Clone repo to the host that has issues with Byparr.
2. Run `docker build --target test .`
3. Depending of the build success:
1. If run successfully, try updating container or if already on newest stable release create an issue for creating new release with new dependencies
2. If build fails, try troubleshooting on another host/using other method
### Local troubleshooting
1. Download [uv](https://docs.astral.sh/uv/getting-started/installation/)
2. Download dependencies using `uv sync --group test`
3. Run tests with `uv run pytest --retries 3` (You can add `-n auto` for parallelization)
4. If you see any `F` character in terminal, that means test failed even after retries.
5. Depending of the test success:
1. If run successfully, try updating container or if already on newest stable release create an issue for creating new release with new dependencies
2. If test fails, try troubleshooting on another host/using other method
- [x] Slimming container (only ~1.11 GB now!)
- [x] Add more anti-bot challenges
- [x] Add doc strings
- [x] Implement versioning
- [x] Proxy support
- [x] Add more architectures support
-1
View File
@@ -2,7 +2,6 @@ services:
byparr:
image: ghcr.io/thephaseless/byparr:latest
restart: unless-stopped
init: true
build:
context: .
dockerfile: Dockerfile
Binary file not shown.

Before

Width:  |  Height:  |  Size: 45 KiB

-1
View File
@@ -1 +0,0 @@
<svg xmlns="http://www.w3.org/2000/svg" xml:space="preserve" viewBox="0 0 512 512"><path d="M243.9 511.9c-58.1-3.2-110.4-24-155-61.8-7-5.9-21.2-20.1-27.2-27.2-20-23.7-35.2-49.2-45.4-76.5-8.3-22-13-42.6-15.5-67.3-1.1-10.8-1.1-35.7 0-46.5 5.6-54.9 25.6-101.9 61-143.8 5.9-7 20.1-21.2 27.2-27.2 23.7-20 49.2-35.2 76.5-45.4 22-8.3 42.7-13 67.3-15.5 10.8-1.1 35.7-1.1 46.5 0 29.1 3 55.1 9.7 80 20.7 39.2 17.3 72.8 43.6 99.6 78 5.3 6.7 14.8 21 19.4 29.1 15.8 27.6 26.4 58.3 31.1 89.8 2 13.6 2.5 21.5 2.5 37.5s-.5 23.9-2.5 37.5c-7.1 47.8-27.1 91.6-59.2 129.5-5.9 7-20.1 21.2-27.2 27.2-16.4 13.8-34.2 25.8-51.8 34.6-28.8 14.5-59.1 23.1-91.7 26.3-7.4.8-28.9 1.3-35.6 1" style="fill:#fff"/><path d="M246.5 395.1c-1.7-.2-3.9-.3-5-.2-1 .1-3.5 0-5.5-.2-2-.3-6.1-.8-9.3-1.2s-6.7-.9-7.8-1.2c-1.2-.3-7.7-3.2-14.5-6.6s-14.3-7-16.8-8.1c-8.5-3.7-14.5-8.1-18.1-13.4-2.1-3.1-3.7-4.4-8.2-6.7-4-2-6-4.1-10.9-11-2-2.9-5-6.8-6.6-8.7-10.9-12.9-11.1-13.3-12.4-19.5-.5-2.5-1.6-5.4-2.9-7.8-4-7.4-5.4-10.8-6.4-14.9-.5-2.3-1.7-6.6-2.6-9.6-1.5-5.1-1.7-6.1-2.1-15.8-.4-9.4-.4-10.9.5-16.1.5-3.2 1.1-7.4 1.2-9.4.2-2 .6-5.4 1-7.6s.9-6.5 1.2-9.5c1-9.8 2.6-14.1 9.1-23.8 4.2-6.2 5.2-8.5 6-13.5.6-3.9 1.4-5.7 4.1-8.9 1.2-1.5 3.5-5.4 5.1-8.6 3.1-6.4 3.2-6.5 8.2-9.9 1.9-1.3 5.8-4 8.6-6s6.3-4.4 7.6-5.4c1.7-1.2 3.1-2.7 4.3-4.6 4.1-6.6 6.1-8 16.3-11.7 3.1-1.1 7.5-3.1 9.8-4.5 5.3-3.1 9-4.4 15-5 2.8-.3 6.8-1.2 9.8-2.1 4.5-1.4 5.6-1.6 10.4-1.6 5.7 0 6.4-.2 13.2-3.1 4.8-2.1 8.9-2.5 14.8-1.5 2.7.5 7.2 1.1 10.1 1.5 6.2.8 6.1.8 11.2 3.1 3.4 1.5 4.9 1.9 9.3 2.3 7 .7 7.9 1 16.1 5.1 3.9 2 9.5 4.5 12.4 5.7 9.8 3.9 14.3 7.2 22.1 15.7 3.3 3.6 8.6 9.2 11.9 12.5 14.5 14.5 14.9 15 16.5 19.4.8 2.2 2.6 6 3.9 8.3 5.2 9.2 12.2 23.8 13.4 28 .7 2.3 1.9 6.5 2.7 9.3 2.1 6.9 2.4 14.2 1 23.6-1.2 8-1.2 11.9-.3 18 .6 3.6.6 5.5.3 9.4-.7 6.7-1.6 10-4.1 14.1-1.3 2.2-2.4 4.7-2.9 6.6-1.8 7.8-5.6 16.3-10.7 24.3-1.4 2.2-3.4 5.5-4.3 7.4-2.2 4.3-4.2 6.6-8.2 9.6-3.7 2.7-14.5 14-17.7 18.4-2.2 3.1-7.1 7.4-10.6 9.4-1.1.6-4.3 1.8-7.2 2.6s-7.1 2.5-9.5 3.7c-3.6 1.8-5 3-8.6 6.6-2.3 2.4-4.9 4.7-5.7 5.1-1.6.8-5.5 1.5-10.7 2-1.7.2-4.6.8-6.4 1.5-7 2.6-7.3 2.6-16.1 2.7-6.9.1-9.3.3-12.3 1.2-4.9.9-8.8 1.2-12.7.6" style="fill:#cc7a3d"/><path d="M237.7 473.6c-42-3.8-79.9-18.3-113-43.2C56 378.7 24.1 291.7 43.1 207.6c6.6-29.2 19.8-57.8 37.7-81.9 47.7-64.1 126.8-97.1 205.8-85.9 36 5.1 70.5 19.3 99.7 41C455.7 132.5 488 220 468.9 304.4c-11.4 50.4-40.9 95.7-82.6 126.8-29.1 21.7-63.7 35.9-99.7 41-15.1 2.2-34.5 2.7-48.9 1.4m33.7-5.2c29-2.5 54.4-9.5 79-21.8 41.4-20.6 75.5-54.8 96.1-96.1 16.9-34 24.9-74.2 21.8-109.9-3.7-42.4-17.6-79.2-42.3-112-34.4-45.8-84.7-75.5-141.4-83.5-25.2-3.6-49.5-2.5-75.2 3.3-49.6 11.2-93.7 40-124.4 81.2-21.3 28.7-35 62-40.1 97.8-2.8 19.4-2.8 38 0 57.4 8.1 56.7 37.7 107 83.5 141.4 11.1 8.3 21 14.5 33 20.5 34.1 16.9 74.4 24.8 110 21.7" style="fill:#b1b1b1"/><path d="M253.9 367.3c-2.9-.7-4.3-1.4-6-2.9-2.9-2.6-3.9-4.9-3.9-8.9 0-3.9 1-6.3 3.9-8.9 6-5.4 15.8-3.1 19 4.3 1.1 2.6 1 7-.3 9.6-1.2 2.4-3.7 4.9-6 5.8-1.7.8-5.3 1.3-6.7 1m68.4-29.3c-9.2-3.4-11-15.4-3.1-21.1 8.1-5.9 20 1 18.8 11-.5 4-3 7.6-6.7 9.5-2.4 1.2-6.6 1.5-9 .6m-139.8-.2c-3.4-1.1-6.2-3.5-7.9-6.7-1.3-2.4-1.2-7.7.2-10.2 1.2-2.3 3.9-4.8 6.3-5.8 2.6-1.1 7-1 9.6.3 4.2 2.1 6.7 6 6.7 10.7 0 6.5-4.7 11.5-11 11.9-1.5.1-3.3 0-3.9-.2m43.2-22.8c-2.4-.8-4.1-1.9-5.8-3.8-5.4-6-3.1-15.8 4.3-19 2.6-1.1 7-1 9.6.3 2.5 1.2 4.9 3.7 5.9 6.2.9 2.1 1 6.3.1 8.8-.8 2.3-3.5 5.3-5.9 6.6-1.9 1-6.3 1.5-8.2.9m54.6 0c-2.4-.8-4.1-1.9-5.8-3.8-5.4-6-3.1-15.8 4.3-19 2.6-1.1 7-1 9.6.3 2.5 1.2 4.9 3.7 5.9 6.2.9 2.1 1 6.3.1 8.8-.8 2.3-3.5 5.3-5.9 6.6-1.9 1-6.3 1.5-8.2.9m-27.6-47c-2.2-.7-4-1.9-5.5-3.5-2.5-2.7-3.2-4.5-3.2-8.5 0-3.9.7-5.8 3.2-8.5s4.8-3.6 8.8-3.6 6.3.9 8.8 3.6 3.2 4.5 3.2 8.5c0 2.5-.3 4-.9 5.2-1.2 2.3-3.5 4.7-5.7 5.8-1.9 1.1-6.7 1.6-8.7 1m99.7 0c-2.4-.8-4.1-1.9-5.8-3.8-5.4-6-3.1-15.8 4.3-19 2.6-1.1 7-1 9.6.3 2.5 1.2 4.9 3.7 5.9 6.2.9 2.1 1 6.3.1 8.8-.8 2.3-3.5 5.3-5.9 6.6-1.9 1-6.3 1.5-8.2.9m-198.9-.7c-8.9-2.5-11.8-13.8-5.1-20.1 2.6-2.5 4.5-3.2 8.2-3.2 3.9 0 6.3 1 8.9 3.9 2.1 2.3 3 4.7 2.9 8.2 0 7.6-7.5 13.2-14.9 11.2m42.9-.4c-2.3-1.2-5.2-4.1-6.1-6.4-1-2.4-.9-7.1.3-9.5 1.1-2.3 4.1-5.2 6.4-6.2 2.4-1 7.1-.9 9.5.3 2.3 1.1 5.2 4.1 6.2 6.4 1 2.4.9 7.1-.3 9.5-1.1 2.3-4.1 5.2-6.4 6.2-2.5 1.1-7.2.9-9.6-.3m109-.3c-11.1-5.6-7-22.5 5.5-22.4 3.7 0 6.1 1.1 8.6 3.9 2.2 2.4 3.2 4.9 3.2 8s-1 5.6-3.2 8c-2.5 2.8-5 3.9-8.6 3.9-2.3-.1-3.5-.4-5.5-1.4m-79.7-46.3c-8.9-2.5-11.8-13.8-5.1-20.1 2.6-2.5 4.5-3.2 8.2-3.2 3.9 0 6.3 1 8.9 3.9 2.1 2.3 3 4.7 2.9 8.2-.1 7.6-7.6 13.3-14.9 11.2m54.5 0c-8-2.2-11.3-12-6.4-18.5 5.7-7.5 16.1-6.4 20.5 2 1.3 2.4 1.2 7.7-.2 10.2-2.6 5.1-8.6 7.8-13.9 6.3m43.2-22.8c-8-2.2-11.3-12-6.4-18.5 5.7-7.5 16.1-6.4 20.5 2 1.3 2.4 1.2 7.7-.2 10.2-2.6 5.2-8.6 7.8-13.9 6.3m-140.6-.5c-8.7-2.4-11.6-13-5.4-19.7 2.5-2.6 4.8-3.6 8.6-3.6 3.9 0 6.3 1.1 8.8 3.8 2.2 2.5 3 4.7 3 8 .1 8-7.3 13.6-15 11.5m70.3-28.9c-8-2.2-11.3-12-6.4-18.5 5.7-7.5 16.1-6.4 20.5 2 1.3 2.4 1.2 7.7-.2 10.2-2.6 5.1-8.5 7.8-13.9 6.3" style="fill:#884717"/></svg>

Before

Width:  |  Height:  |  Size: 4.8 KiB

+4 -3
View File
@@ -2,19 +2,19 @@ from __future__ import annotations
import asyncio
import logging
import os
import sys
import uvicorn
from fastapi import FastAPI
from fastapi.middleware.gzip import GZipMiddleware
from src.consts import HOST, LOG_LEVEL, PORT, VERSION
from src.consts import LOG_LEVEL, VERSION
from src.endpoints import health_check, router
from src.middlewares import LogRequest
from src.utils import get_camoufox, logger
logger.info("Using version %s", VERSION)
logger.info("Log level set to %s", logging.getLevelName(LOG_LEVEL))
app = FastAPI(debug=LOG_LEVEL == logging.DEBUG, log_level=LOG_LEVEL)
app.add_middleware(GZipMiddleware)
@@ -38,4 +38,5 @@ if __name__ == "__main__":
loop.run_until_complete(init())
logger.info("Initialization complete.")
else:
uvicorn.run(app, host=HOST, port=PORT)
host = os.getenv("HOST", "0.0.0.0") # noqa: S104
uvicorn.run(app, host=host, port=8191)
+7 -6
View File
@@ -2,29 +2,30 @@
[project]
authors = [{ name = "ThePhaseless", email = "kukubaorch@gmail.com" }]
license = { text = "LICENSE" }
requires-python = "==3.14.*"
requires-python = "<4.0,>=3.12"
name = "Byparr"
version = "0.1.0"
description = "API for getting cookies for Cloudflare challenges"
readme = "README.md"
dependencies = [
"camoufox[geoip]==0.4.*",
"fastapi[standard]==0.135.*",
"fastapi[standard]==0.116.*",
"playwright-captcha==0.1.*",
"pydantic==2.*",
"pydantic==2.11.*",
]
urls = { repository = "https://github.com/ThePhaseless/Byparr" }
[dependency-groups]
test = [
"httpx==0.28.*",
"pytest==9.0.*",
"pytest-asyncio==1.3.*",
"pytest==8.4.*",
"pytest-asyncio==1.1.*",
"pytest-progress==1.3.*",
"pytest-retry==1.7.*",
"pytest-xdist==3.8.*",
"setuptools>=80.9.0",
]
dev = ["deptry==0.25.*", "ruff==0.15.*"]
dev = ["deptry==0.23.*", "ruff==0.12.*"]
[tool.deptry.per_rule_ignores]
DEP002 = ["pyautogui"]
+2 -5
View File
@@ -1,6 +1,5 @@
import logging
import os
import sys
from pathlib import Path
from playwright_captcha import CaptchaType
@@ -13,15 +12,13 @@ LOG_LEVEL = logging.getLevelNamesMapping()[os.getenv("LOG_LEVEL", "INFO").upper(
VERSION = os.getenv("VERSION", "unknown").removeprefix("v")
ADDON_PATH = str(Path(get_addon_path()).absolute())
MAX_ATTEMPTS = sys.maxsize
MAX_ATTEMPTS = 2**10
PROXY_SERVER = os.getenv("PROXY_SERVER")
PROXY_USERNAME = os.getenv("PROXY_USERNAME")
PROXY_PASSWORD = os.getenv("PROXY_PASSWORD")
HOST = os.getenv("HOST", "0.0.0.0") # noqa: S104
PORT = int(os.getenv("PORT", "8191"))
CHALLENGE_TITLES_MAP: dict[CaptchaType, list[str]] = {
# Cloudflare
CaptchaType.CLOUDFLARE_INTERSTITIAL: ["Just a moment..."],
+22 -30
View File
@@ -6,6 +6,7 @@ from typing import Annotated
from fastapi import APIRouter, Depends, HTTPException
from fastapi.responses import RedirectResponse
from httpx import TimeoutException
from playwright_captcha import CaptchaType
from src.consts import CHALLENGE_TITLES
@@ -15,14 +16,14 @@ from src.models import (
LinkResponse,
Solution,
)
from src.utils import CamoufoxDepClass, TimeoutTimer, get_camoufox, logger
from src.utils import CamoufoxDepType, get_camoufox, logger
warnings.filterwarnings("ignore", category=SyntaxWarning)
router = APIRouter()
CamoufoxDep = Annotated[CamoufoxDepClass, Depends(get_camoufox)]
CamoufoxDep = Annotated[CamoufoxDepType, Depends(get_camoufox)]
@router.get("/", include_in_schema=False)
@@ -54,41 +55,32 @@ async def read_item(request: LinkRequest, dep: CamoufoxDep) -> LinkResponse:
"""Handle POST requests."""
start_time = int(time.time() * 1000)
timer = TimeoutTimer(duration=request.max_timeout)
request.url = request.url.replace('"', "").strip()
try:
page_request = await dep.page.goto(
request.url, timeout=timer.remaining() * 1000
)
status = page_request.status if page_request else HTTPStatus.OK
await dep.page.wait_for_load_state(
state="domcontentloaded", timeout=timer.remaining() * 1000
)
await dep.page.wait_for_load_state(
"networkidle", timeout=timer.remaining() * 1000
)
page_request = await dep.page.goto(request.url)
await dep.page.wait_for_load_state(state="domcontentloaded")
await dep.page.wait_for_load_state("networkidle")
if await dep.page.title() in CHALLENGE_TITLES:
logger.info("Challenge detected, attempting to solve...")
# Solve the captcha
if await dep.page.title() in CHALLENGE_TITLES:
logger.info("Challenge detected, attempting to solve...")
# Solve the captcha
remaining_timeout = (
request.max_timeout - (int(time.time()) * 1000 - start_time) / 1000
)
logger.debug(
"Remaining timeout for solving the challenge: %d ms", remaining_timeout
)
try:
await wait_for(
dep.solver.solve_captcha( # pyright: ignore[reportUnknownMemberType,reportUnknownArgumentType]
captcha_container=dep.page,
captcha_type=CaptchaType.CLOUDFLARE_INTERSTITIAL,
wait_checkbox_attempts=1,
wait_checkbox_delay=0.5,
),
timeout=timer.remaining(),
timeout=remaining_timeout,
)
status = HTTPStatus.OK
logger.debug("Challenge solved successfully.")
except TimeoutError as e:
logger.error("Timed out while solving the challenge")
raise HTTPException(
status_code=408,
detail="Timed out while solving the challenge",
) from e
except TimeoutException as e:
logger.error("Failed to solve challenge: %s", e)
return LinkResponse.invalid(url=request.url)
logger.debug("Challenge solved successfully.")
cookies = await dep.context.cookies()
@@ -97,7 +89,7 @@ async def read_item(request: LinkRequest, dep: CamoufoxDep) -> LinkResponse:
solution=Solution(
user_agent=await dep.page.evaluate("navigator.userAgent"),
url=dep.page.url,
status=status,
status=page_request.status if page_request else HTTPStatus.OK,
cookies=cookies,
headers=page_request.headers if page_request else {},
response=await dep.page.content(),
+1 -1
View File
@@ -25,6 +25,6 @@ class LogRequest(BaseHTTPMiddleware):
if response.status_code == HTTPStatus.OK:
logger.info(f"Done {request_body.url} in {process_time:.2f}s")
else:
logger.warning(f"Failed {request_body.url} in {process_time:.2f}s")
logger.info(f"Failed {request_body.url} in {process_time:.2f}s")
return response
+1 -1
View File
@@ -25,7 +25,7 @@ class LinkRequest(BaseModel):
class HealthcheckResponse(BaseModel):
model_config = {"alias_generator": to_camel, "populate_by_name": True}
msg: str = "Byparr is working!"
msg: str = "Byparr is ready!"
version: str = consts.VERSION
user_agent: str
+11 -56
View File
@@ -1,16 +1,13 @@
import logging
import time
from collections.abc import AsyncGenerator
from typing import Annotated, NamedTuple, cast
from typing import NamedTuple, cast
from camoufox import AsyncCamoufox
from fastapi import Header
from playwright.async_api import Browser, BrowserContext, Page
from playwright_captcha import (
ClickSolver,
FrameworkType,
)
from pydantic import BaseModel, Field
from src.consts import (
ADDON_PATH,
@@ -21,13 +18,9 @@ from src.consts import (
PROXY_USERNAME,
)
solver_logger = logging.getLogger("playwright_captcha")
solver_logger = logging.getLogger("playwright_captcha.solvers")
solver_logger.handlers.clear()
if LOG_LEVEL == logging.DEBUG:
solver_logger.addHandler(logging.StreamHandler())
solver_logger.setLevel(LOG_LEVEL)
else:
solver_logger.handlers.append(logging.NullHandler())
solver_logger.handlers.append(logging.NullHandler())
logger = logging.getLogger("uvicorn.error")
logger.setLevel(LOG_LEVEL)
@@ -35,61 +28,23 @@ if len(logger.handlers) == 0:
logger.addHandler(logging.StreamHandler())
class TimeoutTimer(BaseModel):
duration: int # in seconds
start_time: float = Field(default_factory=time.perf_counter)
def remaining(self) -> float:
"""Get remaining time in seconds."""
return max(0, self.duration - (time.perf_counter() - self.start_time))
class CamoufoxDepClass(NamedTuple):
class CamoufoxDepType(NamedTuple):
page: Page
solver: ClickSolver
context: BrowserContext
async def get_camoufox(
x_proxy_server: Annotated[
str | None,
Header(
alias="X-Proxy-Server",
description="Override proxy server for this request in protocol://host:port format.",
),
] = None,
x_proxy_username: Annotated[
str | None,
Header(
alias="X-Proxy-Username",
),
] = None,
x_proxy_password: Annotated[
str | None,
Header(
alias="X-Proxy-Password",
),
] = None,
) -> AsyncGenerator[CamoufoxDepClass]:
async def get_camoufox() -> AsyncGenerator[CamoufoxDepType, None]:
"""Get Camoufox instance."""
header_server = x_proxy_server
header_username = x_proxy_username
header_password = x_proxy_password
proxy_config = None
if header_server:
proxy_config = {
"server": header_server,
"username": header_username,
"password": header_password,
}
elif PROXY_SERVER:
proxy_config = {
proxy_config = (
{
"server": PROXY_SERVER,
"username": PROXY_USERNAME,
"password": PROXY_PASSWORD,
}
if PROXY_SERVER
else None
)
async with AsyncCamoufox(
main_world_eval=True,
@@ -113,4 +68,4 @@ async def get_camoufox(
max_attempts=MAX_ATTEMPTS,
attempt_delay=1,
) as solver:
yield CamoufoxDepClass(page, solver, context)
yield CamoufoxDepType(page, solver, context)
Generated
+909 -775
View File
File diff suppressed because it is too large Load Diff