forked from pool/python-cfscrape
Accepting request 703129 from devel:languages:python
- Switch to GitHub tarball, enable tests - Update to 2.0.4 * Detect captcha challenges, try harder to avoid them - Update to 2.0.3 * Support latest Cloudflare IUAM challenge - Update to 2.0.0 * Support latest Cloudflare IUAM challenge OBS-URL: https://build.opensuse.org/request/show/703129 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-cfscrape?expand=0&rev=5
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:fa7fc172e6872f461377216ddd5a6d82c9650b9d10cac5aa0239998daf3e093a
|
||||
size 8596
|
||||
3
cloudflare-scrape-2.0.4.tar.gz
Normal file
3
cloudflare-scrape-2.0.4.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:780c7f24c2aa311214a0a290af9662b7e69b4c9d6af8d4821a359cf2efb9aa31
|
||||
size 309396
|
||||
@@ -1,3 +1,22 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed May 15 11:06:15 UTC 2019 - Martin Herkt <9+suse@cirno.systems>
|
||||
|
||||
- Switch to GitHub tarball, enable tests
|
||||
- Update to 2.0.4
|
||||
* Detect captcha challenges, try harder to avoid them
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat May 11 12:28:56 UTC 2019 - Martin Herkt <9+suse@cirno.systems>
|
||||
|
||||
- Update to 2.0.3
|
||||
* Support latest Cloudflare IUAM challenge
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat May 11 10:19:59 UTC 2019 - Martin Herkt <9+suse@cirno.systems>
|
||||
|
||||
- Update to 2.0.0
|
||||
* Support latest Cloudflare IUAM challenge
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 20 21:25:44 UTC 2019 - Martin Herkt <9+suse@cirno.systems>
|
||||
|
||||
|
||||
@@ -18,15 +18,20 @@
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-cfscrape
|
||||
Version: 1.9.7
|
||||
Version: 2.0.4
|
||||
Release: 0
|
||||
Summary: Python module to bypass Cloudflare's anti-bot page
|
||||
License: MIT
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/Anorov/cloudflare-scrape
|
||||
Source: https://files.pythonhosted.org/packages/source/c/cfscrape/cfscrape-%{version}.tar.gz
|
||||
Source: https://github.com/Anorov/cloudflare-scrape/archive/%{version}.tar.gz#/cloudflare-scrape-%{version}.tar.gz
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module requests}
|
||||
BuildRequires: %{python_module responses}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module sure}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: nodejs
|
||||
BuildRequires: python-rpm-macros
|
||||
Requires: nodejs
|
||||
Requires: python-requests
|
||||
@@ -52,7 +57,7 @@ reCAPTCHA challenge, you're out of luck. Thankfully, the Javascript check page
|
||||
is much more common.
|
||||
|
||||
%prep
|
||||
%setup -q -n cfscrape-%{version}
|
||||
%setup -q -n cloudflare-scrape-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -61,7 +66,9 @@ is much more common.
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
# no tests even in git
|
||||
%check
|
||||
%python_exec setup.py develop --user
|
||||
%python_exec -m pytest -v tests
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
|
||||
Reference in New Issue
Block a user