Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-cloudscraper for
openSUSE:Factory checked in at 2021-01-18 11:28:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-cloudscraper (Old)
and /work/SRC/openSUSE:Factory/.python-cloudscraper.new.28504 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-cloudscraper"
Mon Jan 18 11:28:52 2021 rev:2 rq:863725 version:1.2.52
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-cloudscraper/python-cloudscraper.changes
2020-12-25 18:50:45.589240135 +0100
+++
/work/SRC/openSUSE:Factory/.python-cloudscraper.new.28504/python-cloudscraper.changes
2021-01-18 11:32:36.576699679 +0100
@@ -1,0 +2,6 @@
+Thu Jan 7 11:06:07 UTC 2021 - Matej Cepl <[email protected]>
+
+- Update to 1.2.52 "This will all end in tears; I just know it."
+ - Added in "Bot Fight Mode" detection.
+
+-------------------------------------------------------------------
Old:
----
cloudscraper-1.2.50.tar.gz
New:
----
cloudscraper-1.2.52.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-cloudscraper.spec ++++++
--- /var/tmp/diff_new_pack.7g9cLp/_old 2021-01-18 11:32:37.124700219 +0100
+++ /var/tmp/diff_new_pack.7g9cLp/_new 2021-01-18 11:32:37.128700223 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-cloudscraper
#
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -18,22 +18,22 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-cloudscraper
-Version: 1.2.50
+Version: 1.2.52
Release: 0
Summary: A Python module to bypass Cloudflare's anti-bot page
License: MIT
URL: https://github.com/venomous/cloudscraper
Source0:
https://files.pythonhosted.org/packages/source/c/cloudscraper/cloudscraper-%{version}.tar.gz
Source1: cloudscraper-tests.tar.xz
-BuildRequires: python-rpm-macros
BuildRequires: %{python_module setuptools}
+BuildRequires: python-rpm-macros
# SECTION test requirements
-BuildRequires: %{python_module pytest}
+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: %{python_module Js2Py}
BuildRequires: nodejs10
# /SECTION
BuildRequires: fdupes
++++++ cloudscraper-1.2.50.tar.gz -> cloudscraper-1.2.52.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/cloudscraper-1.2.50/PKG-INFO
new/cloudscraper-1.2.52/PKG-INFO
--- old/cloudscraper-1.2.50/PKG-INFO 2020-12-22 09:40:59.000000000 +0100
+++ new/cloudscraper-1.2.52/PKG-INFO 2021-01-07 10:43:02.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: cloudscraper
-Version: 1.2.50
+Version: 1.2.52
Summary: A Python module to bypass Cloudflare's anti-bot page.
Home-page: https://github.com/venomous/cloudscraper
Author: VeNoMouS
@@ -614,10 +614,10 @@
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
+Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Software Development :: Libraries :: Application
Frameworks
Classifier: Topic :: Software Development :: Libraries :: Python Modules
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/cloudscraper-1.2.50/cloudscraper/__init__.py
new/cloudscraper-1.2.52/cloudscraper/__init__.py
--- old/cloudscraper-1.2.50/cloudscraper/__init__.py 2020-12-22
09:21:39.000000000 +0100
+++ new/cloudscraper-1.2.52/cloudscraper/__init__.py 2021-01-07
09:44:48.000000000 +0100
@@ -58,7 +58,7 @@
#
-------------------------------------------------------------------------------
#
-__version__ = '1.2.50'
+__version__ = '1.2.52'
#
-------------------------------------------------------------------------------
#
@@ -303,6 +303,27 @@
return response
#
-------------------------------------------------------------------------------
#
+ # check if the response contains a valid Cloudflare Bot Fight Mode
challenge
+ #
-------------------------------------------------------------------------------
#
+
+ @staticmethod
+ def is_BFM_Challenge(resp):
+ try:
+ return (
+ resp.headers.get('Server', '').startswith('cloudflare')
+ and re.search(
+ r"\/cdn-cgi\/bm\/cv\/\d+\/api\.js.*?"
+ r"window\['__CF\$cv\$params'\]\s*=\s*{",
+ resp.text,
+ re.M | re.S
+ )
+ )
+ except AttributeError:
+ pass
+
+ return False
+
+ #
-------------------------------------------------------------------------------
#
# check if the response contains a valid Cloudflare challenge
#
-------------------------------------------------------------------------------
#
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/cloudscraper-1.2.50/cloudscraper.egg-info/PKG-INFO
new/cloudscraper-1.2.52/cloudscraper.egg-info/PKG-INFO
--- old/cloudscraper-1.2.50/cloudscraper.egg-info/PKG-INFO 2020-12-22
09:40:59.000000000 +0100
+++ new/cloudscraper-1.2.52/cloudscraper.egg-info/PKG-INFO 2021-01-07
10:43:02.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 2.1
Name: cloudscraper
-Version: 1.2.50
+Version: 1.2.52
Summary: A Python module to bypass Cloudflare's anti-bot page.
Home-page: https://github.com/venomous/cloudscraper
Author: VeNoMouS
@@ -614,10 +614,10 @@
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
-Classifier: Programming Language :: Python :: 3.5
Classifier: Programming Language :: Python :: 3.6
Classifier: Programming Language :: Python :: 3.7
Classifier: Programming Language :: Python :: 3.8
+Classifier: Programming Language :: Python :: 3.9
Classifier: Topic :: Internet :: WWW/HTTP
Classifier: Topic :: Software Development :: Libraries :: Application
Frameworks
Classifier: Topic :: Software Development :: Libraries :: Python Modules
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/cloudscraper-1.2.50/setup.py
new/cloudscraper-1.2.52/setup.py
--- old/cloudscraper-1.2.50/setup.py 2020-09-27 05:47:07.000000000 +0200
+++ new/cloudscraper-1.2.52/setup.py 2020-12-22 21:59:06.000000000 +0100
@@ -45,10 +45,10 @@
'Operating System :: OS Independent',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
- 'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Programming Language :: Python :: 3.8',
+ 'Programming Language :: Python :: 3.9',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Software Development :: Libraries :: Application Frameworks',
'Topic :: Software Development :: Libraries :: Python Modules'