Duckduckgo api python3

<hidden> anonymous
Created: 1 year and 6 months ago • Updated: 1 year and 6 months ago
Hello,

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/__init__.py 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.


brians
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 Staff1 year and 6 months ago Link
anonymous
Hi thanks for answering this fast ! Here is the message i get when installing duckduckgo on my terminal :
Code:
Collecting duckduckgo
  Using cached duckduckgo-0.1.tar.gz
    Complete output from command python setup.py 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/setup.py", line 2, in <module>
        from duckduckgo import __version__
      File "/private/var/folders/bm/lc0br55s6_qb35lgbc6hq3w80000gn/T/pip-build-6pfa4sq3/duckduckgo/duckduckgo.py", line 2, in <module>
        import urllib2
    ImportError: No module named 'urllib2'
    
    ----------------------------------------
Command "python setup.py 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> • 1 year and 6 months ago Link