python-cloudscraper
maintainer xiota
· 6 votes
· scanned 2026-08-18 07:39:23.787586
MEDIUM
View on AUR ↗
Why flagged
This package was orphaned and re-adopted within the last 30 days — a window where ownership transfers can introduce malicious changes.
Triggered rules
MEDIUM
Recently orphaned & re-adopted
orphaned_readopted
This package was orphaned and re-adopted within the last 30 days — a window where ownership transfers can introduce malicious changes.
PKGBUILD
1
# Maintainer: aur.chaotic.cx
2
# Contributor: Carl Smedstad <carl.smedstad at protonmail dot com>
3
# Contributor: Carlos Aznarán <caznaranl@uni.pe>
4
# Contributor: Antonio Rojas <arojas@archlinux.org>
5
# Contributor: Eli Schwartz <eschwartz@archlinux.org>
6
# Contributor: Mufeed Ali <fushinari@protonmail.com>
7
# Contributor: lastweakness <lastweakness@tuta.io>
8
9
_module="cloudscraper"
10
_pkgname="python-$_module"
11
pkgname="$_pkgname"
12
pkgver=3.0.0
13
pkgrel=2
14
pkgdesc="Python module to bypass Cloudflare's anti-bot page"
15
url="https://github.com/VeNoMouS/cloudscraper"
16
license=(MIT)
17
arch=(any)
18
19
depends=(
20
nodejs # interpreter/solver
21
python
22
python-brotli
23
python-pyparsing
24
python-requests
25
python-requests-toolbelt
26
python-urllib3
27
)
28
makedepends=(
29
python-build
30
python-installer
31
python-setuptools
32
python-wheel
33
)
34
checkdepends=(
35
python-pytest
36
python-responses
37
)
38
39
_pkgsrc="$_module-$pkgver"
40
_pkgext="tar.gz"
41
source=(
42
"$_pkgname-$pkgver.$_pkgext"::"$url/archive/refs/tags/$pkgver.$_pkgext"
43
'0001-PR295-fix_infinite_loop.patch'
44
'0002-fix_test_403_handling.patch'
45
'0003-drop_chakracore.patch'
46
'0004-drop_js2py.patch'
47
'0005-drop_v8.patch'
48
)
49
sha256sums=(
50
'7a540064fd0ff108f572dd45f72897773d0028642b8211238e1c81cc779e99cb'
51
'd324182a08aa7438757c87117ad7a269b252bb0f111151a481d61866038f92b3'
52
'14447248d44020c60d66ca57c7113d02bcf1bb9649618971093aa1f7325eb27d'
53
'9d2bfe24a437586448cf259fc66a8dd8d951e3de28d99cec5a31ae189d3ff42e'
54
'543920f7f2a3b64841afe5e855f280c834cc4ba8da5997bd9713b79a26c76678'
55
'0853067fc05d9f648af3887ad42690c2830480a68cde97cd016569d193ff182d'
56
)
57
58
prepare() {
59
local src
60
for src in "${source[@]}"; do
61
src="${src%%::*}"
62
src="${src##*/}"
63
src="${src%.zst}"
64
if [[ $src == *.patch ]]; then
65
printf '\nApplying patch: %s\n' "$src"
66
patch -d "$_pkgsrc" -Np1 -F100 -i "${srcdir:?}/$src"
67
fi
68
done
69
70
cd "$_pkgsrc"
71
}
72
73
build() {
74
cd "$_pkgsrc"
75
python -m build --wheel --no-isolation
76
}
77
78
check() {
79
local _test_opts=(
80
#--deselect tests/test_modern.py::TestCloudScraper::test_403_handling
81
)
82
83
cd "$_pkgsrc"
84
pytest "${_test_opts[@]}"
85
}
86
87
package() {
88
cd "$_pkgsrc"
89
python -m installer --destdir="$pkgdir" dist/*.whl
90
install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/"
91
}
92
Changes since previous scan
--- PKGBUILD @ 2026-08-16 00:03+++ PKGBUILD @ 2026-08-18 07:39@@ -1,29 +1,29 @@-# Maintainer: Carl Smedstad <carl.smedstad at protonmail dot com>-# Maintainer: Carlos Aznarán <caznaranl@uni.pe>+# Maintainer: aur.chaotic.cx+# Contributor: Carl Smedstad <carl.smedstad at protonmail dot com>+# Contributor: Carlos Aznarán <caznaranl@uni.pe> # Contributor: Antonio Rojas <arojas@archlinux.org> # Contributor: Eli Schwartz <eschwartz@archlinux.org> # Contributor: Mufeed Ali <fushinari@protonmail.com> # Contributor: lastweakness <lastweakness@tuta.io> -pkgname=python-cloudscraper-_name=${pkgname#python-}-pkgver=1.2.71+_module="cloudscraper"+_pkgname="python-$_module"+pkgname="$_pkgname"+pkgver=3.0.0 pkgrel=2 pkgdesc="Python module to bypass Cloudflare's anti-bot page"-arch=(any) url="https://github.com/VeNoMouS/cloudscraper" license=(MIT)+arch=(any)+ depends=(+ nodejs # interpreter/solver python python-brotli python-pyparsing python-requests python-requests-toolbelt python-urllib3-)-optdepends=(- 'nodejs: alternative interpreter/solver'- 'python-js2py: alternative interpreter/solver' ) makedepends=( python-build@@ -32,39 +32,61 @@ python-wheel ) checkdepends=(- nodejs- python-js2py python-pytest python-responses ) -_commit=cbb3c0ea31597a3c94760d9edf648a77510da8ac-source=("$pkgname-$_commit.tar.gz::$url/archive/$_commit.tar.gz")-sha256sums=('045c8f6e87697d0684997a61315883c968974a1a0a2bc7ee470c1e63ceab23fc')+_pkgsrc="$_module-$pkgver"+_pkgext="tar.gz"+source=(+ "$_pkgname-$pkgver.$_pkgext"::"$url/archive/refs/tags/$pkgver.$_pkgext"+ '0001-PR295-fix_infinite_loop.patch'+ '0002-fix_test_403_handling.patch'+ '0003-drop_chakracore.patch'+ '0004-drop_js2py.patch'+ '0005-drop_v8.patch'+)+sha256sums=(+ '7a540064fd0ff108f572dd45f72897773d0028642b8211238e1c81cc779e99cb'+ 'd324182a08aa7438757c87117ad7a269b252bb0f111151a481d61866038f92b3'+ '14447248d44020c60d66ca57c7113d02bcf1bb9649618971093aa1f7325eb27d'+ '9d2bfe24a437586448cf259fc66a8dd8d951e3de28d99cec5a31ae189d3ff42e'+ '543920f7f2a3b64841afe5e855f280c834cc4ba8da5997bd9713b79a26c76678'+ '0853067fc05d9f648af3887ad42690c2830480a68cde97cd016569d193ff182d'+) -_archive="$_name-$_commit"+prepare() {+ local src+ for src in "${source[@]}"; do+ src="${src%%::*}"+ src="${src##*/}"+ src="${src%.zst}"+ if [[ $src == *.patch ]]; then+ printf '\nApplying patch: %s\n' "$src"+ patch -d "$_pkgsrc" -Np1 -F100 -i "${srcdir:?}/$src"+ fi+ done++ cd "$_pkgsrc"+} build() {- cd "$_archive"-+ cd "$_pkgsrc" python -m build --wheel --no-isolation } check() {- cd "$_archive"+ local _test_opts=(+ #--deselect tests/test_modern.py::TestCloudScraper::test_403_handling+ ) - pytest \- --deselect tests/test_cloudscraper.py::TestCloudScraper::test_bad_interpreter_js_challenge1_16_05_2020 \- --deselect tests/test_cloudscraper.py::TestCloudScraper::test_bad_solve_js_challenge1_16_05_2020 \- --deselect tests/test_cloudscraper.py::TestCloudScraper::test_Captcha_challenge_12_12_2019 \- --deselect tests/test_cloudscraper.py::TestCloudScraper::test_reCaptcha_providers+ cd "$_pkgsrc"+ pytest "${_test_opts[@]}" } package() {- cd "$_archive"-+ cd "$_pkgsrc" python -m installer --destdir="$pkgdir" dist/*.whl-- install -Dm644 -t "$pkgdir/usr/share/licenses/$pkgname" LICENSE+ install -Dm644 LICENSE -t "$pkgdir/usr/share/licenses/$pkgname/" } Scan history
| Scanned at (UTC) | Severity | Rules |
|---|---|---|
| 2026-08-18 07:39:23 | MEDIUM | 1 |
| 2026-08-16 00:03:42 | CLEAN | 2 |
| 2026-08-15 13:30:33 | MEDIUM | 1 |
| 2026-06-18 16:11:54 | CLEAN | 0 |