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

Google backend will not work forever #107

Open
tusing opened this issue May 12, 2018 · 6 comments
Open

Google backend will not work forever #107

tusing opened this issue May 12, 2018 · 6 comments

Comments

@tusing
Copy link
Collaborator

tusing commented May 12, 2018

When the bot receives a request, it searches for that request in Google (adding on, for example, "site:fanfiction.net" to the query if the request was for fanfiction.net).

The script we use to search Google will not work forever. Google doesn't really have an API and it's cracking down on script-based access. To ensure the stability of the bot, we'll want to use a sanctioned API-based method of crawling Google.

An option might be Google's Custom Search APIs, where we define Custom Search over the two or three websites we support. We would then replace our call to the Google script with a call to Custom Search.

@ThrawnCA
Copy link

Are there alternative search engines that could do the job? StartPage, DuckDuckGo, etc?

@Thatgirl318
Copy link

Is there any reason we can't use the fanfiction search funciton? Is it just bad or lack of API also?

@Thatgirl318
Copy link

We might also be able to use the Custom Search Restriction json API

@tusing
Copy link
Collaborator Author

tusing commented Dec 10, 2019

The reason is that I have no time to work on this anymore :( But I will gladly take pull requests that fix the search functionality! Would you be willing to work on this?

@Thatgirl318
Copy link

Yeah totally (once finals are done). I just didn't want to go down a path you tried and already abandoned.

@Thatgirl318
Copy link

Thatgirl318 commented Dec 12, 2019

Would it be possible for me to get the logs?

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

No branches or pull requests

3 participants