DDGS Map Search
madhatter349 opened this issue · comments
madhatter349 commented
`from duckduckgo_search import DDGS
with DDGS() as ddgs:
for r in ddgs.maps("coffee shops", postalcode="10001", max_results=10):
print(r)`
When trying to search this for example I get no results, the only map search that seems to work is if you use "place".
Thanks
deedy5 commented
summary:
- fixed in v4.4.3, update
pip install -U duckduckgo_search
- zip-codes may be the same in different countries - 10001, so with
postalcode
also use at leastcountry
parameter - increase the radius, because postalcode returns a very small area on the map
code example:
from duckduckgo_search import DDGS
with DDGS() as ddgs:
for r in ddgs.maps("coffee shops", country="algeria", postalcode="10001", radius=10, max_results=10):
print(r)
madhatter349 commented
@deedy5 thank you so much, that fixed it!