opsdroid / skill-google-it

💬 A skill for opsdroid to google things for you
Apache License 2.0
0 stars 0 forks source link

Add functionality to fetch the actual results of the search #5

Open gtseres opened 6 years ago

gtseres commented 6 years ago

It would be great if opsdroid could fetch the actual results of its search (titles and URLs), except for just the URL of the query. This way, one would easily follow the URL that corresponds to the title that best fit their query. The user should be able to add a limit of the results to be fetched, where opsdroid will set a default value, say 10, if the user does not enter a number for how many results to be fetched. Something like the following:

opsdroid> google pomodoro technique 3
Here's what I found https://www.google.co.uk/search?q=pomodoro+technique
    - Pomodoro Technique - Wikipedia (https://en.wikipedia.org/wiki/Pomodoro_Technique)
    - Productivity 101: A Primer to The Pomodoro Technique - Lifehacker (https://lifehacker.com/productivity-101-a-primer-to-the-pomodoro-technique-1598992730)
    - The Pomodoro Technique | What Is The Pomodoro Technique... (https://www.focusboosterapp.com/the-pomodoro-technique)

If the title is too long, it should be truncated with ... added to the end.

gtseres commented 6 years ago

I can look into that if you don't mind

jacobtomlinson commented 6 years ago

Please go ahead. That sounds like a great extension to this!