Skip to content

Add duckduckgo-image-search extension - #15223

Closed
jag-k wants to merge 6 commits into
raycast:mainfrom
jag-k:ext/duckduckgo-image-search
Closed

jag-k wants to merge 6 commits into
raycast:mainfrom
jag-k:ext/duckduckgo-image-search

Conversation

@jag-k

@jag-k jag-k commented Nov 4, 2024 •

Copy link
Copy Markdown
Contributor

Description

Search Images inside Raycast by DuckDuckGo Image!

Screencast

duckduckgo-image-search-1
duckduckgo-image-search-2

Checklist

- Update project dependencies and refactor code for consistency.
- Initial setup for DuckDuckGo Image Search extension
@raycastbot raycastbot added the new extension Label for PRs with new extensions label Nov 4, 2024
@raycastbot

Copy link
Copy Markdown
Collaborator

Congratulations on your new Raycast extension! 🚀

You can expect an initial review within five business days.

Once the PR is approved and merged, the extension will be available on our Store.

@pernielsentikaer

Copy link
Copy Markdown
Contributor

Hi 👋

This doesn't work for me, I just end up here:

duckduckgo-image-search 2024-11-12 at 09 21 06

Error: attempt finished
    at imageNextSearch (/Users/pernielsentikaer/.config/raycast/extensions/duckduckgo-image-search/search-image.js:21830:17)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async imageSearch (/Users/pernielsentikaer/.config/raycast/extensions/duckduckgo-image-search/search-image.js:21807:10)
    at async searchImage (/Users/pernielsentikaer/.config/raycast/extensions/duckduckgo-image-search/search-image.js:21896:12)
    at async /Users/pernielsentikaer/.config/raycast/extensions/duckduckgo-image-search/search-image.js:21983:38

Do you have any idea what might be wrong?

@pernielsentikaer pernielsentikaer self-assigned this Nov 12, 2024
@jag-k

jag-k commented Nov 12, 2024

Copy link
Copy Markdown
Contributor Author

Oh, yes... sometimes, DuckDuckGo might block re requests. Try to open ddg on your browser and search anything. After that, try to find images in extension.

Anyway, I need to raise connection attempts up to 5-10

@pernielsentikaer

Copy link
Copy Markdown
Contributor

I'm still encountering the error. I've tried various searches but haven't been able to get it to work. I'm unsure if it's suitable for the store in its current state 🙁

@jag-k

jag-k commented Nov 14, 2024

Copy link
Copy Markdown
Contributor Author

I'm still encountering the error. I've tried various searches but haven't been able to get it to work. I'm unsure if it's suitable for the store in its current state 🙁

Sounds sad 😢 I'll try to update rate limit tomorrow ('cause I haven't Mac yet)

@jag-k

jag-k commented Nov 17, 2024 •

Copy link
Copy Markdown
Contributor Author

@pernielsentikaer I think I fixed it.

Added more settings into Raycast Command Settings:

  • License
  • Locale
  • Retry count
  • Sleep time between retries

I think the error was caused by a locale (maybe DuckDuckGo "removes" locale wt-wt). Now the default locale is en-us.

duckduckgo-image-search-2

@pernielsentikaer

Copy link
Copy Markdown
Contributor

Now I'm getting this error, not sure what it is?

Error: Failed to get the VQD for query "h".
    at getVQD (/Users/pernielsentikaer/.config/raycast/extensions/duckduckgo-image-search/search-image.js:21778:11)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
    at async makeNextFromQuery (/Users/pernielsentikaer/.config/raycast/extensions/duckduckgo-image-search/search-image.js:21786:19)
    at async imageSearch (/Users/pernielsentikaer/.config/raycast/extensions/duckduckgo-image-search/search-image.js:21807:25)
    at async searchImage (/Users/pernielsentikaer/.config/raycast/extensions/duckduckgo-image-search/search-image.js:21906:12)
    at async /Users/pernielsentikaer/.config/raycast/extensions/duckduckgo-image-search/search-image.js:22079:38

@jag-k

jag-k commented Nov 20, 2024 •

Copy link
Copy Markdown
Contributor Author

@pernielsentikaer can you check it again with VPN or something like this? And maybe change a locale in settings?

I’ll get the more details tomorrow, ‘cause it’s too late for me right now

@pernielsentikaer

Copy link
Copy Markdown
Contributor

VPN and changed locale didn't do anything, the error happens the second I press a key

Raycast20112024-sCYQZQYp.png.mp4

@raycastbot

Copy link
Copy Markdown
Collaborator

This pull request has been automatically marked as stale because it did not have any recent activity.

It will be closed if no further activity occurs in the next 7 days to keep our backlog clean 😊

@raycastbot raycastbot added the status: stalled Stalled due inactivity label Dec 4, 2024
@raycastbot

Copy link
Copy Markdown
Collaborator

This issue has been automatically closed due to inactivity.

Feel free to comment in the thread when you're ready to continue working on it 🙂

You can also catch us in Slack if you want to discuss this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

new extension Label for PRs with new extensions status: stalled Stalled due inactivity

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants