-
-
Notifications
You must be signed in to change notification settings - Fork 532
ver 3.8 - connection blocked due to unusual activity #276
Comments
Please take a look at #244. |
For more info search for issues with the string "connection blocked" |
i use your ddgr on the same notebook around the same time under the same network environment. ddgr query is not blocked and successful. the block issue happened after the snap app was promoted to ver 3.8. seems no problem with 3.7.1 (snap). |
I am not sure if this is due to changes in Are you saying immediately after you get the error with 3.8, if you try 3.7.1 it works for you? Do you have any means to try on a different network? Otherwise, can you automate this on Travis/CircleCI and test? With 3.8 our automated tests passed on both Travis and CircleCI.
|
Amusingly, on my Linode server (Ubuntu bionic), when I run googler directly from Ubuntu, the requests are perma blocked, but when I run googler tests from within an |
Only difference I can think of: on Ubuntu bionic I have Python 3.6.7 with openssl 1.1.0g-2ubuntu4.3, on python:3.6-slim I have Python 3.6.8 with openssl 1.1.0j-1~deb9u1, so there could be a cipher suite difference. |
just a second though, would it be due to the 'behaviour' of the app sending queries or msg that google looks suspicious hence block the query? i could google via firefox from the same notebook and the same network. i do not think the ip was blacklisted by google. |
Yes, that's also possible. |
As I said, googler running in Ubuntu and googler running inside a python:3.6-slim container on top of Ubuntu should be sending the exact same requests with the exact same headers (user agent included) so not sure what "behavior" is different. googler is of course worlds apart from a JavaScript-enabled browser. Think of reCAPTCHA v3 where there's only a single checkbox, and the amount of completely transparent bot detection that happens behind the scenes. |
hello,
tried the snap app (V3.8). the 3.8 was just promoted from edge channel. the previous stable snap is 3.7.1
running snapd (2.38+) on xubuntu 18.04.2
regards
$ googler -d obama
[DEBUG] googler version 3.8
[DEBUG] Python version 3.5.2
[DEBUG] Connecting to new host www.google.com
[DEBUG] Fetching URL /search?ie=UTF-8&oe=UTF-8&q=obama&sei=TRYM7ltREemzXAAl09OLPw
[DEBUG] Cookie: 1P_JAR=2019-04-10-05
Traceback (most recent call last):
File "/snap/googler/300/usr/local/bin/googler", line 3257, in
main()
File "/snap/googler/300/usr/local/bin/googler", line 3246, in main
repl.cmdloop()
File "/snap/googler/300/usr/local/bin/googler", line 2732, in cmdloop
self.fetch_and_display()
File "/snap/googler/300/usr/local/bin/googler", line 2349, in enforced_method
method(self, *args, **kwargs)
File "/snap/googler/300/usr/local/bin/googler", line 2540, in fetch_and_display
self.fetch()
File "/snap/googler/300/usr/local/bin/googler", line 2349, in enforced_method
method(self, *args, **kwargs)
File "/snap/googler/300/usr/local/bin/googler", line 2447, in fetch
page = self._conn.fetch_page(self._google_url.relative())
File "/snap/googler/300/usr/local/bin/googler", line 1991, in fetch_page
raise GoogleConnectionError('Connection blocked due to unusual activity.')
main.GoogleConnectionError: Connection blocked due to unusual activity
The text was updated successfully, but these errors were encountered: