Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# Windows
Hey all,
I am making a program in which it gets all the websites in one search page and gets the url or those websites then it will show all of the websites in a text box. Not a web browser.
I mean like when Client Enters a search My program will write all the websites names. Using Google. Like imagine in google i enter 'Hello'. Then my tool finds all websites in the page and lists them in a text box
 
How can i do that
Posted 5-Nov-12 10:26am
Edited 5-Nov-12 10:52am
v2
Comments
Sergey Alexandrovich Kryukov at 5-Nov-12 16:28pm
   
All Web sites? No, too many... How about almost all? :-)
--SA
Cyberwarfare at 5-Nov-12 16:52pm
   
Okay sorry I improved my question now please hope you all understand
Mathlab at 5-Nov-12 16:55pm
   
Do you just want a page search or to search the entire web?
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

This looks like something called Web scraping: http://en.wikipedia.org/wiki/Web_scraping[^].
 
Please see my past answers explaining what's involved:
How to get the data from another site[^],
get specific data from web page[^].
 
—SA
  Permalink  
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

You can use either Bing API or Google API to perform the search for a keyword and list your websites (results)
 
for bing.
http://www.bing.com/developers/s/APIBasics.html[^]
 
for google
https://developers.google.com/custom-search/v1/overview[^]
 
You use these APIs from anywhere, windows forms, wpf, silverlight or asp.net.
 
if you already have a page listing the content that you need to scrap, then use Sergey's approach (above)
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



Advertise | Privacy | Mobile
Web04 | 2.8.140709.1 | Last Updated 5 Nov 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid