commit be0b87a1b581e4bd10b36c0fec83dac0391dab76fecdaf9d76538e468ec33e54 Author: Steve Kowalik Date: Mon Jun 16 06:19:53 2025 +0000 - Switch to pyroject macros. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cloudscraper?expand=0&rev=14 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/cloudscraper-1.2.68.tar.gz b/cloudscraper-1.2.68.tar.gz new file mode 100644 index 0000000..3e93865 --- /dev/null +++ b/cloudscraper-1.2.68.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:91fa6241e035583108393e4cbe5eabe58f83e71e75f7b99ddd0c666ffd29f677 +size 111952 diff --git a/cloudscraper-1.2.69.tar.gz b/cloudscraper-1.2.69.tar.gz new file mode 100644 index 0000000..a21887c --- /dev/null +++ b/cloudscraper-1.2.69.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ee1df7b0c22529a190d12d34f2437997e6f4b68192ff965476d54cc8eb12fefa +size 112198 diff --git a/python-cloudscraper.changes b/python-cloudscraper.changes new file mode 100644 index 0000000..bf496a7 --- /dev/null +++ b/python-cloudscraper.changes @@ -0,0 +1,47 @@ +------------------------------------------------------------------- +Mon Jun 16 06:12:17 UTC 2025 - Steve Kowalik + +- Switch to pyroject macros. + +------------------------------------------------------------------- +Thu Feb 29 12:33:16 UTC 2024 - Daniel Garcia + +- Skip broken tests with python 3.12 + +------------------------------------------------------------------- +Fri Nov 12 01:28:36 UTC 2021 - Steve Kowalik + +- Skip a broken test. + +------------------------------------------------------------------- +Wed May 12 17:06:14 UTC 2021 - Dominique Leuenberger + +- Replace nodejs10 BuildRequires with nodejs-default: + + Use the distro-provided default version of nodejs without + pinning to an old version. + +------------------------------------------------------------------- +Wed May 5 09:09:26 UTC 2021 - Matej Cepl + +- Update to 1.2.58: + - Cloudflare changing minor things that broke the regex. + - Changed debug to support non printable UTF-8 + +------------------------------------------------------------------- +Thu Jan 28 16:03:26 UTC 2021 - Matej Cepl + +- Upgrade to 1.2.56: + Arm race continues! + Not supporting Python 2 any more. +- Use tarball from GitHub, the one on PyPI doesn't have tests. :'( + +------------------------------------------------------------------- +Thu Jan 7 11:06:07 UTC 2021 - Matej Cepl + +- Update to 1.2.52 "This will all end in tears; I just know it." + - Added in "Bot Fight Mode" detection. + +------------------------------------------------------------------- +Thu Dec 24 12:23:50 UTC 2020 - Matej Cepl + +- Initial packaging of cloudscraper 1.2.50. diff --git a/python-cloudscraper.spec b/python-cloudscraper.spec new file mode 100644 index 0000000..1b554f9 --- /dev/null +++ b/python-cloudscraper.spec @@ -0,0 +1,76 @@ +# +# spec file for package python-cloudscraper +# +# Copyright (c) 2025 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define modname cloudscraper +%define skip_python2 1 +Name: python-cloudscraper +Version: 1.2.68 +Release: 0 +Summary: A Python module to bypass Cloudflare's anti-bot page +License: MIT +URL: https://github.com/venomous/cloudscraper +Source: https://github.com/VeNoMouS/%{modname}/archive/%{version}.tar.gz#/%{modname}-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: python-rpm-macros +# SECTION test requirements +BuildRequires: %{python_module Js2Py} +BuildRequires: %{python_module pyparsing >= 2.4.7} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module requests >= 2.9.2} +BuildRequires: %{python_module requests-toolbelt >= 0.9.1} +BuildRequires: %{python_module responses} +BuildRequires: nodejs-default +# /SECTION +BuildRequires: fdupes +Requires: python-pyparsing >= 2.4.7 +Requires: python-requests >= 2.9.2 +Requires: python-requests-toolbelt >= 0.9.1 +BuildArch: noarch +%python_subpackages + +%description +A Python module to bypass Cloudflare's anti-bot page. + +%prep +%autosetup -p1 -n cloudscraper-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# Skip broken test +donttest="test_getCookieString_challenge_js_challenge1_16_05_2020" +donttest+=" or test_bad_interpreter_js_challenge1_16_05_2020" +donttest+=" or test_bad_solve_js_challenge1_16_05_2020" +donttest+=" or test_Captcha_challenge_12_12_2019" +donttest+=" or test_reCaptcha_providers" +%pytest -k "not ($donttest)" + +%files %{python_files} +%doc README.md +%license LICENSE +%{python_sitelib}/cloudscraper +%{python_sitelib}/cloudscraper-%{version}.dist-info + +%changelog