From cd789ed13874bf63356a3ea56fd12476c7fc351e Mon Sep 17 00:00:00 2001 From: Soxoj <31013580+soxoj@users.noreply.github.com> Date: Fri, 6 Dec 2024 13:32:51 +0100 Subject: [PATCH] Fixed Ebay and BongaCams checks (#1939) --- maigret/checking.py | 1 + maigret/resources/data.json | 36 ++++++++++++++++++++++++++++++++---- 2 files changed, 33 insertions(+), 4 deletions(-) diff --git a/maigret/checking.py b/maigret/checking.py index 549b596..82256ef 100644 --- a/maigret/checking.py +++ b/maigret/checking.py @@ -684,6 +684,7 @@ async def maigret( # setup parallel executor executor: Optional[AsyncExecutor] = None if no_progressbar: + # TODO: switch to AsyncioProgressbarQueueExecutor with progress object mock executor = AsyncioSimpleExecutor(logger=logger) else: executor = AsyncioProgressbarQueueExecutor( diff --git a/maigret/resources/data.json b/maigret/resources/data.json index 10c08bb..79513ee 100644 --- a/maigret/resources/data.json +++ b/maigret/resources/data.json @@ -2417,16 +2417,28 @@ "cz", "webcam" ], + "headers": { + "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:133.0) Gecko/20100101 Firefox/133.0", + "Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", + "Accept-Language": "en-US,en;q=0.5", + "Referer": "https://pt.bongacams.com/", + "Upgrade-Insecure-Requests": "1", + "Sec-Fetch-Dest": "document", + "Sec-Fetch-Mode": "navigate", + "Sec-Fetch-Site": "same-origin", + "Sec-Fetch-User": "?1" + }, "absenceStrs": [ - "" ], "presenseStrs": [ "Informa\u00e7\u00e3o e p\u00e1gina" ], "checkType": "message", "alexaRank": 30, - "urlMain": "https://pt.bongacams.com", - "url": "https://pt.bongacams.com/profile/{username}", + "urlMain": "https://sbongacams.com", + "url": "https://bongacams.com/profile/{username}", + "urlProbe": "https://pt.bongacams.com/profile/{username}", "usernameClaimed": "Icehotangel", "usernameUnclaimed": "noonewouldeverusethis77777" }, @@ -4547,6 +4559,9 @@ "shopping", "us" ], + "errors": { + "<title>Security Measure": "Captcha detected" + }, "checkType": "message", "presenseStrs": [ "Positive feedback" @@ -4555,7 +4570,20 @@ "