Duckduckgo api python3

<hidden> anonymous
Created: 2 years and 5 months ago • Updated: 2 years and 5 months ago

I'm trying to make a search using python3 API but it looks like it isn't work on python 3. I have this error message error :

ImportError Traceback (most recent call last)
<ipython-input-135-504cac4cf18a> in <module>()
----> 1 import duckduckgo

/Applications/anaconda/lib/python3.5/site-packages/duckduckgo/ in <module>()
----> 1 from duckduckgo import search

ImportError: cannot import name 'search'

Thanks a lot in advance !

This forum has been archived

Thank you all for the many comments, questions and suggestions. Particular thanks go to user x.15a2 for constantly monitoring, replying and helping so many users here. To continue these discussions, please head over to the DuckDuckGo subreddit.

Hi there, our API seems up and working as far as I can tell. Can you post the code you're running so we can try to help debug?
posted by brians Staff2 years and 5 months ago Link
Hi thanks for answering this fast ! Here is the message i get when installing duckduckgo on my terminal :
Collecting duckduckgo
  Using cached duckduckgo-0.1.tar.gz
    Complete output from command python egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/private/var/folders/bm/lc0br55s6_qb35lgbc6hq3w80000gn/T/pip-build-6pfa4sq3/duckduckgo/", line 2, in <module>
        from duckduckgo import __version__
      File "/private/var/folders/bm/lc0br55s6_qb35lgbc6hq3w80000gn/T/pip-build-6pfa4sq3/duckduckgo/", line 2, in <module>
        import urllib2
    ImportError: No module named 'urllib2'
Command "python egg_info" failed with error code 1 in /private/var/folders/bm/lc0br55s6_qb35lgbc6hq3w80000gn/T/pip-build-6pfa4sq3/duckduckgo/

I just typed : pip install duckduckgo as some did on the internet...
posted by <hidden> • 2 years and 5 months ago Link