Jump to content

How to extract answers from Wikipedia or Google?


Recommended Posts

Hello.
I am working in an chatbot script, which has a GUI and can interact by words. I need to know how can I make the bot extract answers from Google or Wikipedia (if possible) and output them into an edit box. For example: When I type "what is Autoit" the bot should return: "AutoIt /ɔːtoʊ ɪt/ is a freeware automation language for Microsoft Windows."
 
Any ideas? Thanks in advance. :)

Edited by TheNewHunter
Clarification.

Hello.

If in someway I have helped, please consider liking my post(s).

The formula for the right answer: You + Right Question = Answer

(Think) BEFORE you post.

Link to comment
Share on other sites

  • Moderators

Yes, same thing that is becoming the standard in your posts - what have you tried on your own?

You are still new, so you get the obligatory:

Welcome to the forum. Please realize this forum is dedicated to helping people improve their scripts. It is not a forum where you put in a request and someone barfs up code for you. Your first post in any thread should be a detailed summary of the issue you're facing, what you've tried, what searching you've done on the forum, and your code (even if it isn't working as you would like it to). Help us help you ;)

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

  • Moderators

As you didn't explain just what you're trying to do, I assume you are looking for general suggestions. So I give you one that I wrote for a helpdesk person that was continually asking me questions without searching for himself:

 

$input = InputBox( "Every answer to every question - Ever", "Please enter type in your question." )
ShellExecute ("http://www.lmgtfy.com/?q=" &$input)

 

Edited by JLogan3o13

"Profanity is the last vestige of the feeble mind. For the man who cannot express himself forcibly through intellect must do so through shock and awe" - Spencer W. Kimball

How to get your question answered on this forum!

Link to comment
Share on other sites

As you didn't explain just what you're trying to do, I assume you are looking for generalize suggestions. So I give you one that I wrote for a helpdesk person that was continually asking me questions without searching for himself:

 

$input = InputBox( "Every answer to every question - Ever", "Please enter type in your question." )
ShellExecute ("http://www.lmgtfy.com/?q=" &$input)

 

​I don't only "like" it, I LOVE (Auto)IT! :ILA3:

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...