Click here to Skip to main content
15,889,527 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Hi All....I want a code where i can extract all the text snippets from web pages for a given search term from the search engine.How to write a code for this?I have to implement this concept in my project.After extracting the snippets i have to extarct the pattern from the snippet.For example for a given search term will smith i got the following snippet "Willard Christopher "Will" Smith, Jr. (born September 25, 1968), also known by his stage name The Fresh Prince, is an American actor, producer, and rapper." Now fresh prince is his alias name.So i want to extract the text which is between the real name and his alias.Next we should search using willsmith and the extracted pattern together to know all his alias names...the text which we retrieve when we enter the willsmith and the pattern gives us all the alias names.Should i store all the text snippets in database fisrt and then retrieve them according to the search term entered?So i want to know how to implemnt this in my project using myeclipse,jsp,servlets.this is an ieee project "automatic discovery of personal name aliases from the web" .Please provide the code.my mail id is payal201221@ymail.com
Posted
Comments
Sandeep Mewara 18-Jul-12 3:03am    
It does not work like this here.

Here is what is expected of enquirers:
1. TRY first what you want to do! You may find that it's not that hard.
2. Formulate what was done by you that looks like an issue/not working.

Try them and tell if you face issues.
Members will be more than happy to help like this.
TorstenH. 18-Jul-12 5:20am    
This is not possible.
In your example you would have to find the Nick name "Fresh prince". How do you want to do that?
You need to know it anyway (so you can search for it) or you know where it stands (then the gap between Name and nick needs to be constant, but one cannnot expect that).

and second: DO YOUR FINAL YEAR PROJECT YOURSELF
It is your project. They will easily see the difference between your code and code someone else wrote.
payalkool 19-Jul-12 6:54am    
Ya ...I am doing it myself...But not able to implement the exact way given in the paper.Thats the prob.

1 solution

I guess you need to write a text parser, the HTTP request is easy, making sense of the response ( which is HTML, not just text ) is harder.

Don't put your email here. If you give the site your email, you'll get an email from replies, and you won't get spam that way. Putting your email address out there on the web is only a good idea if you need a russian bride, or help with your sex life.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900