• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

scraping google maps results

 
Ranch Hand
Posts: 400
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
google-map-result.jpg
[Thumbnail for google-map-result.jpg]
Google map results highlighted in red box.
 
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 400
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
No need to scrape when they give it to you: http://code.google.com/apis/maps/index.html

Eric
 
Minhaj Mehmood
Ranch Hand
Posts: 400
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is there any solution to this problem? I'm totally clueless now!!!
 
Eric Pascarello
author
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 400
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 1337
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How is that question not answered by Eric's reply? Did you read and understand the pages he linked to?
 
Minhaj Mehmood
Ranch Hand
Posts: 400
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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]
 
Sheriff
Posts: 10445
227
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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?
 
Lester Burnham
Rancher
Posts: 1337
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 400
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 15385
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Minhaj Mehmood
Ranch Hand
Posts: 400
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
Posts: 400
Hibernate Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic