Accessing a HTML file output through python


this is the output of the html file I loaded in my browser.
i want the latitudes and longitudes to be extracted.
can anyone suggest a way to do that?

3 Likes

could you tell us from where you wanted to extract those latitude and longitude values ?

1 Like

Need more info.
You can use DOM and pull those values.

You can Use Scraping Tools too…
Beautiful Soup or Scrapy.

3 Likes

Use curl to download the page and you can use simple grep to extract the latitude. But if you want the python way you can use urllib to get the contents and then use beautiful soup as suggested by @sameerkousik asbove to get those values.

1 Like

That isn’t any existing webpage…It loads Everytime when I execute the html file