I even can’t ping duckduckgo.com, but can ping google.com. If I disconnect my cell phone from my home wifi and use cell-service I can search duckduckgo, but if I connect it to the home wifi the searches time out.
Searches via a browser to ddg through my home wifi ip seem to be locked out.
It appears that ddg has blocked my home-wifi ip perhaps?
Has anyone else had similar issues in using ddg?
The bing image search seems to have charges associated with it. Does anyone have an image search process that remains free and doesn’t get blocked?
Explored a bit about the diffs between the search_images_ddg you get from conda install -c fastai fastbook vs the one you get if you use the code at the github repo link above and have a possible explanation if anyone runs into this.
Looks like the conda install version puts you in an infinite loop hitting urljson every time through. The infinite loop happens, at least for me, because an exception is thrown and the except block simply passes and you end up at the top of the loop again with no additional item added to the urls iterable, which is the loop exit criteria. In general, except: pass can be a little dangerous
Just a guess, but DDG probably blocks an ip if it sees too many hits in a short period of time from it, which is likely what happened to me.
So I’d recommend:
someone update the code that one gets from ’ conda install -c fastai fastbook’ to not have the infinite loop
in the meantime, use the code from the github repo link above instead.
And thanks so much for the great tools, great teachings and great community!
Hey Just wondering how did you use the code from the github repo in your local jupyter notebook. Using either conda or pip in terminal installs the outdated version of the serach_images_ddg function and using !pip install -Uqq fastbook likewise does the same.
Are you referencing the github code somehow? thanks!
UPDATE:
I finally got it working
Steps:
pip install fastbook to get fastbook (0.29 I believe)
python -m pip show fastbook (to find the directory it’s saved in)