Skip to content

Commit

Permalink
Temporary fix for Twitter (#299)
Browse files Browse the repository at this point in the history
  • Loading branch information
soxoj committed Jan 8, 2022
1 parent 5c05cfa commit 82cd2e9
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 2 deletions.
3 changes: 3 additions & 0 deletions maigret/checking.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ async def check(self, future) -> Tuple[str, int, Optional[CheckError]]:
self.logger.debug(e, exc_info=True)
error = CheckError("Unexpected", str(e))

if error == "Invalid proxy response":
self.logger.debug(e, exc_info=True)

return str(html_text), status_code, error


Expand Down
22 changes: 20 additions & 2 deletions maigret/resources/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -14523,9 +14523,26 @@
"usernameClaimed": "jenny",
"usernameUnclaimed": "noonewouldeverusethis7"
},
"Nitter": {
"tags": [
"messaging"
],
"regexCheck": "^[a-zA-Z0-9_]{1,15}$",
"checkType": "message",
"absenceStrs": [
"<title>Error | nitter</title>",
"The requested URL was not found on this server."
],
"source": "Twitter",
"alexaRank": 48,
"urlMain": "https://www.nitter.net/",
"url": "https://nitter.net/{username}",
"usernameClaimed": "blue",
"usernameUnclaimed": "noonewould123"
},
"Twitter": {
"tags": [
"us"
"messaging"
],
"headers": {
"sec-ch-ua": "Google Chrome\";v=\"87\", \" Not;A Brand\";v=\"99\", \"Chromium\";v=\"87\"",
Expand All @@ -14536,6 +14553,7 @@
"errors": {
"Bad guest token": "x-guest-token update required"
},
"regexCheck": "^[a-zA-Z0-9_]{1,15}$",
"activation": {
"method": "twitter",
"marks": [
Expand All @@ -14554,7 +14572,7 @@
"urlMain": "https://www.twitter.com/",
"url": "https://twitter.com/{username}",
"usernameClaimed": "blue",
"usernameUnclaimed": "noonewouldeverusethis7"
"usernameUnclaimed": "noonewould123"
},
"Typeracer": {
"tags": [
Expand Down

0 comments on commit 82cd2e9

Please sign in to comment.