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-05-05 20:40:02
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-cloudscraper (Old)
and /work/SRC/openSUSE:Factory/.python-cloudscraper.new.2988 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-cloudscraper"
Wed May 5 20:40:02 2021 rev:4 rq:890634 version:1.2.58
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-cloudscraper/python-cloudscraper.changes
2021-02-19 23:46:08.711415150 +0100
+++
/work/SRC/openSUSE:Factory/.python-cloudscraper.new.2988/python-cloudscraper.changes
2021-05-05 20:40:07.946882397 +0200
@@ -1,0 +2,7 @@
+Wed May 5 09:09:26 UTC 2021 - Matej Cepl <[email protected]>
+
+- Update to 1.2.58:
+ - Cloudflare changing minor things that broke the regex.
+ - Changed debug to support non printable UTF-8
+
+-------------------------------------------------------------------
Old:
----
cloudscraper-1.2.56.tar.gz
New:
----
cloudscraper-1.2.58.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-cloudscraper.spec ++++++
--- /var/tmp/diff_new_pack.3tm34Y/_old 2021-05-05 20:40:09.066877590 +0200
+++ /var/tmp/diff_new_pack.3tm34Y/_new 2021-05-05 20:40:09.070877572 +0200
@@ -20,7 +20,7 @@
%define modname cloudscraper
%define skip_python2 1
Name: python-cloudscraper
-Version: 1.2.56
+Version: 1.2.58
Release: 0
Summary: A Python module to bypass Cloudflare's anti-bot page
License: MIT
++++++ cloudscraper-1.2.56.tar.gz -> cloudscraper-1.2.58.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/cloudscraper-1.2.56/cloudscraper/__init__.py
new/cloudscraper-1.2.58/cloudscraper/__init__.py
--- old/cloudscraper-1.2.56/cloudscraper/__init__.py 2021-01-28
02:37:16.000000000 +0100
+++ new/cloudscraper-1.2.58/cloudscraper/__init__.py 2021-04-06
15:23:27.000000000 +0200
@@ -58,7 +58,7 @@
#
-------------------------------------------------------------------------------
#
-__version__ = '1.2.56'
+__version__ = '1.2.58'
#
-------------------------------------------------------------------------------
#
@@ -197,7 +197,7 @@
@staticmethod
def debugRequest(req):
try:
- print(dump.dump_all(req).decode('utf-8'))
+ print(dump.dump_all(req).decode('utf-8',
errors='backslashreplace'))
except ValueError as e:
print(f"Debug Error: {getattr(e, 'message', e)}")
@@ -355,7 +355,7 @@
resp.headers.get('Server', '').startswith('cloudflare')
and resp.status_code in [429, 503]
and re.search(
-
r'cpo.src\s*=\s*"/cdn-cgi/challenge-platform/\S+orchestrate/jsch/v1"',
+
r'cpo.src\s*=\s*"/cdn-cgi/challenge-platform/\S+orchestrate/jsch/v1',
resp.text,
re.M | re.S
)
@@ -376,7 +376,7 @@
return (
CloudScraper.is_Captcha_Challenge(resp)
and re.search(
-
r'cpo.src\s*=\s*"/cdn-cgi/challenge-platform/\S+orchestrate/captcha/v1"',
+
r'cpo.src\s*=\s*"/cdn-cgi/challenge-platform/\S+orchestrate/captcha/v1',
resp.text,
re.M | re.S
)