Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added StartPage completion #4189

Closed
wants to merge 1 commit into from
Closed

Conversation

matthewblott
Copy link

StartPage is a popular search engine which should be included.

StartPage is a popular search engine which should be included.
@philc
Copy link
Owner

philc commented Jul 22, 2023

Hey @matthewblott,

Completions got reworked a bit, and the parse function needs to be updated to this:

parse(text) {
  return Array.from(JSON.parse(text)).map((suggestion) => suggestion.phrase);
}

More importantly, I couldn't get the suggestions API to work with the URL in this PR. It seems the website adds a random token (sc) to the query string, and that is required to get results. E.g.:

https://www.startpage.com/suggestions?q=hey&sc=mErAnqplBxxn00&lui=english

I'm not sure if that's a session token or something. It seems to me that their suggestions API isn't stable, or it isn't meant to be used programmatically like this.

@philc philc added the waiting label Jul 22, 2023
@philc
Copy link
Owner

philc commented Mar 26, 2024

Closing due to inactivity.

@philc philc closed this Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants