From 21bfdcfe726d3505d0be2d594b25c46ad69a6fb7826628344f10bc2545536267 Mon Sep 17 00:00:00 2001 From: Mia Herkt <9+suse@cirno.systems> Date: Sat, 11 May 2019 10:20:53 +0000 Subject: [PATCH 1/3] - Update to 2.0.0 * Support latest Cloudflare IUAM challenge OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cfscrape?expand=0&rev=14 --- cfscrape-1.9.7.tar.gz | 3 --- cfscrape-2.0.0.tar.gz | 3 +++ python-cfscrape.changes | 6 ++++++ python-cfscrape.spec | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) delete mode 100644 cfscrape-1.9.7.tar.gz create mode 100644 cfscrape-2.0.0.tar.gz diff --git a/cfscrape-1.9.7.tar.gz b/cfscrape-1.9.7.tar.gz deleted file mode 100644 index 7769d50..0000000 --- a/cfscrape-1.9.7.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:fa7fc172e6872f461377216ddd5a6d82c9650b9d10cac5aa0239998daf3e093a -size 8596 diff --git a/cfscrape-2.0.0.tar.gz b/cfscrape-2.0.0.tar.gz new file mode 100644 index 0000000..5ed19c1 --- /dev/null +++ b/cfscrape-2.0.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a65608d830682b37e6725853a869e5c94f1cd41b8c4b9dec6ebc8cee1563a0c6 +size 10870 diff --git a/python-cfscrape.changes b/python-cfscrape.changes index 9696164..a0789bc 100644 --- a/python-cfscrape.changes +++ b/python-cfscrape.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +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> diff --git a/python-cfscrape.spec b/python-cfscrape.spec index 2bcbe84..190ea42 100644 --- a/python-cfscrape.spec +++ b/python-cfscrape.spec @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-cfscrape -Version: 1.9.7 +Version: 2.0.0 Release: 0 Summary: Python module to bypass Cloudflare's anti-bot page License: MIT From e103042bfc138773eccb54078cd9c552324b63e5d78ce1c298328edbbb76615d Mon Sep 17 00:00:00 2001 From: Mia Herkt <9+suse@cirno.systems> Date: Sat, 11 May 2019 12:29:25 +0000 Subject: [PATCH 2/3] - Update to 2.0.3 * Support latest Cloudflare IUAM challenge OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cfscrape?expand=0&rev=15 --- cfscrape-2.0.0.tar.gz | 3 --- cfscrape-2.0.3.tar.gz | 3 +++ python-cfscrape.changes | 6 ++++++ python-cfscrape.spec | 2 +- 4 files changed, 10 insertions(+), 4 deletions(-) delete mode 100644 cfscrape-2.0.0.tar.gz create mode 100644 cfscrape-2.0.3.tar.gz diff --git a/cfscrape-2.0.0.tar.gz b/cfscrape-2.0.0.tar.gz deleted file mode 100644 index 5ed19c1..0000000 --- a/cfscrape-2.0.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a65608d830682b37e6725853a869e5c94f1cd41b8c4b9dec6ebc8cee1563a0c6 -size 10870 diff --git a/cfscrape-2.0.3.tar.gz b/cfscrape-2.0.3.tar.gz new file mode 100644 index 0000000..39f42b2 --- /dev/null +++ b/cfscrape-2.0.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e0afdd8a6d5456c6c96555b9a71cdd41d3eaa3f14a8a032d64b700cb26ce98fd +size 11249 diff --git a/python-cfscrape.changes b/python-cfscrape.changes index a0789bc..d543285 100644 --- a/python-cfscrape.changes +++ b/python-cfscrape.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +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> diff --git a/python-cfscrape.spec b/python-cfscrape.spec index 190ea42..5b8e985 100644 --- a/python-cfscrape.spec +++ b/python-cfscrape.spec @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-cfscrape -Version: 2.0.0 +Version: 2.0.3 Release: 0 Summary: Python module to bypass Cloudflare's anti-bot page License: MIT From 2d1769b2c8267e9f71fbb293ab8258d2527dfd9273d6a13c61fd4630c0491d3e Mon Sep 17 00:00:00 2001 From: Mia Herkt <9+suse@cirno.systems> Date: Wed, 15 May 2019 11:08:10 +0000 Subject: [PATCH 3/3] - Switch to GitHub tarball, enable tests - Update to 2.0.4 * Detect captcha challenges, try harder to avoid them OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cfscrape?expand=0&rev=16 --- cfscrape-2.0.3.tar.gz | 3 --- cloudflare-scrape-2.0.4.tar.gz | 3 +++ python-cfscrape.changes | 7 +++++++ python-cfscrape.spec | 15 +++++++++++---- 4 files changed, 21 insertions(+), 7 deletions(-) delete mode 100644 cfscrape-2.0.3.tar.gz create mode 100644 cloudflare-scrape-2.0.4.tar.gz diff --git a/cfscrape-2.0.3.tar.gz b/cfscrape-2.0.3.tar.gz deleted file mode 100644 index 39f42b2..0000000 --- a/cfscrape-2.0.3.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e0afdd8a6d5456c6c96555b9a71cdd41d3eaa3f14a8a032d64b700cb26ce98fd -size 11249 diff --git a/cloudflare-scrape-2.0.4.tar.gz b/cloudflare-scrape-2.0.4.tar.gz new file mode 100644 index 0000000..56cfb4d --- /dev/null +++ b/cloudflare-scrape-2.0.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:780c7f24c2aa311214a0a290af9662b7e69b4c9d6af8d4821a359cf2efb9aa31 +size 309396 diff --git a/python-cfscrape.changes b/python-cfscrape.changes index d543285..a0806e4 100644 --- a/python-cfscrape.changes +++ b/python-cfscrape.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +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> diff --git a/python-cfscrape.spec b/python-cfscrape.spec index 5b8e985..5376f0f 100644 --- a/python-cfscrape.spec +++ b/python-cfscrape.spec @@ -18,15 +18,20 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-cfscrape -Version: 2.0.3 +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