What do I need to read/learn in order to enter a search term into google and fetch the results from console?
Code padawan here teaching myself to code so pardon the ignorance.
I want to be able to enter a search term into console and return the search results from google to be displayed in google.
What do I need to learn/read in order to accomplish this?
UPDATED
- Enter search term开发者_如何学Python into console
- Program takes this search term and runs it in google search
- Take the results of this search query and output the first page to console
I hope this is clearer ^_^
You may want to look at the WebClient
class to retrieve results from google.
As for displaying them, I don't quite understand what you mean in your question.
You can always output them to the console.
return the search results from google to be displayed in google.
Could you elaborate what you mean by display in google.
To send a query to google you will probably need an API key otherwise you will get a nastygram unless you change your user agent to something you aren't.
This project might be harder than it seems with all the extra hoops.
精彩评论