deedy5 / duckduckgo_search

Search for words, documents, images, videos, news, maps and text translation using the DuckDuckGo.com search engine. Downloading files and images to a local hard drive.
MIT License
937 stars 117 forks source link

Downloading files asociated to a key search #26

Closed vjvelascorios closed 1 year ago

vjvelascorios commented 1 year ago

Thanks so much, this is a fantastic project and I hope still alive for much time.

Just as a kindly suggestion, should be fantastic adding a new function for downloading files associated to a key term, like pdf's, pptx's, like ddgs document.

Again, thanks for such powerful package. Regards.

deedy5 commented 1 year ago

Thank you.

https://github.com/deedy5/duckduckgo_search/pull/27 v2.5.0

The ddg() function can now download results to a local disk in the same way as ddg_images() This is also possible in the CLI version. Examples:

ddgs text -k "robinson r44 filetype:pdf" -m 250 -o None -d
ddgs text -k "robinson r44 filetype:docs" -m 250 -o None -d
ddgs text -k "robinson r44 filetype:xlsx" -m 250 -o None -d
vjvelascorios commented 1 year ago

Wow, Thank you so much.