This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes HTML, CSS and JavaScript and the fly likes scraping google maps results Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "scraping google maps results" Watch "scraping google maps results" New topic
Author

scraping google maps results

Minhaj Mehmood
Ranch Hand

Joined: Jan 22, 2007
Posts: 400

Hi All,

I'm looking for an API/Library to scrap the results of google maps for example I've query to as => http://maps.google.com/maps?hl=en&q=Pizza+near+Eiffel+Tower,+France
and then i want to extract the html from result pane as shown into attached screen shot the highlighted result.


Regards



[Thumbnail for google-map-result.jpg]



SCJP6 96% | SCWCD5 81% | SCDJWS5 79%
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
That's probably not permissible since the data is copyrighted. Why don't you get a Google API key and access the data directly through the API?
Minhaj Mehmood
Ranch Hand

Joined: Jan 22, 2007
Posts: 400

That's true it's not permissible. Actually i don't want to scrap the google results I've a similar scraping task in which the web-pages pull data through ajax so am just wondering whether is there any already ready made API which i can use to get the exactly what is visible on a page.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
No need to scrape when they give it to you: http://code.google.com/apis/maps/index.html

Eric
Minhaj Mehmood
Ranch Hand

Joined: Jan 22, 2007
Posts: 400

Is there any solution to this problem? I'm totally clueless now!!!
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
I will get you even closer to the answer and point you to the api since you could not figure it out from the list I originally posted for you: http://code.google.com/apis/maps/documentation/places/

Eric
Minhaj Mehmood
Ranch Hand

Joined: Jan 22, 2007
Posts: 400

Minhaj Mehmood wrote:That's true it's not permissible. Actually i don't want to scrap the google results I've a similar scraping task in which the web-pages pull data through ajax so am just wondering whether is there any already ready made API which i can use to get the exactly what is visible on a page.


please check above post...
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
How is that question not answered by Eric's reply? Did you read and understand the pages he linked to?
Minhaj Mehmood
Ranch Hand

Joined: Jan 22, 2007
Posts: 400

Lester Burnham wrote:How is that question not answered by Eric's reply? Did you read and understand the pages he linked to?


Actually i don't want to scrap the google results I've a similar scraping task in which the web-pages pull data through ajax so am just wondering whether is there any already ready made API which i can use to get the exactly what is visible on a page.


hope you get now?

[Edited: Do not post using large font sizes]
Jaikiran Pai
Marshal

Joined: Jul 20, 2005
Posts: 10067
    
163

Minhaj Mehmood wrote:
Actually i don't want to scrap the google results I've a similar scraping task in which the web-pages pull data through ajax so am just wondering whether is there any already ready made API which i can use to get the exactly what is visible on a page.



You are repeating the same post again and again without explaining why the referenced API doesn't help your usecase. Have you had a look at that API? If yes, what part of your requirement isn't met by that API? Can you be more specific on why you can't use that API?


[My Blog] [JavaRanch Journal]
Lester Burnham
Rancher

Joined: Oct 14, 2008
Posts: 1337
I don't - reposting the same reply in a larger font does not make for a more persuasive point; quite the contrary actually. I take it you have not read the links you were pointed to. Since you also never replied to the question I asked in my first post, I conclude that you're not too interested in getting this resolved, or at least not interested in spending time and effort on doing so. So I won't either. Good luck.
Minhaj Mehmood
Ranch Hand

Joined: Jan 22, 2007
Posts: 400

well i mean to say i just given the example of http://maps.google.com/ website, its just an assumption.

In real i have similar website(cant disclose here) which results i want to scrap.
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
Minhaj Mehmood wrote:well i mean to say i just given the example of http://maps.google.com/ website, its just an assumption.

In real i have similar website(cant disclose here) which results i want to scrap.


Helps if you would have stated that up front so we do not waste our times helping you with the wrong answer.

JavaScript can not read other domains, you are not going to scrap with JavaScript. If they do not have an api, than JavaScript is not going to help you out. End of story.

Eric
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 30356
    
150

Also, trying to scrape an image is an incredibly difficult problem. The original screen scrapers were used for mainframe "green screens" where everything was text.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Minhaj Mehmood
Ranch Hand

Joined: Jan 22, 2007
Posts: 400

Eric Pascarello wrote:
Helps if you would have stated that up front so we do not waste our times helping you with the wrong answer.


That's my bad, I apologize for that....
Minhaj Mehmood
Ranch Hand

Joined: Jan 22, 2007
Posts: 400

Lester Burnham wrote:I don't - reposting the same reply in a larger font does not make for a more persuasive point; quite the contrary actually. I take it you have not read the links you were pointed to. Since you also never replied to the question I asked in my first post, I conclude that you're not too interested in getting this resolved, or at least not interested in spending time and effort on doing so. So I won't either. Good luck.


It's not like that please don't get me wrong. However, i appreciate your help & time thank you very much.


Kinda Regards

Minhaj
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: scraping google maps results