How to get a search results page e.g. with google

Asked by aeroadmin

Hi!
How to make a program to find the necessary information to me in search engines such as Google? For example I want to find a site for the keyword query, the program can find?

Question information

Language:
English Edit question
Status:
Answered
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
RaiMan (raimund-hocke) said :
#1

since Sikuli automates mouse and keyboard actions together with locating visual objects on the screen, you just have to turn a manual workflow, you are using into a Sikuli script.

--- example Windows / Firefox
openApp("path to firefox")
wait(5) # give enough time
type("l", KEY_CTRL) # to position in address field
paste("google.com")
wait("image-of-google-logo", 10) # wait for google page
paste("sikuli") # enter search text
type(Key.ENTER)

to find more about the commands: http://sikuli.org/docx/

If you want to have more programmed access to the page contents of a results page, you have to use the standard Python features to run http requests and use the results (-> Python doc)

Can you help with this problem?

Provide an answer of your own, or ask aeroadmin for more information if necessary.

To post a message you must log in.