Team-Earth-Quake-Detector / team_1_earth_quake_detector

Hello World! We are three coding-rookies from Germany. We want to create an earthquake detector that visualizes a world map with earthquakes all over the world in real time. Enjoy!
0 stars 1 forks source link

Create template from folium output #33

Closed karinahasler closed 3 years ago

karinahasler commented 3 years ago

Folium creates an html file containing the map and the earthquakes:

https://github.com/Team-Earth-Quake-Detector/team_1_earth_quake_detector/blob/main/use_case/templates/my_map.html

We need to extract the relevant information from the html file to create a custom html file containing our logo, some descriptions and the input fields to be displayed on our web server.

The final output should look approximately like this:

PHOTO-2021-06-03-15-04-38

We have tried using Beautiful Soup to extract the earthquake map HTML code. However, as a result we get only a text that cannot be interpreted as HTML Code anymore.

Also, as fas as we understand it, you can only have dynamic content in the HTML script in the format of plain text, images, hyperlinks etc. and not HTML code including tags etc.

aliciamarleen commented 3 years ago

Hallo Herr Zeutschler, soeben konnten wir das Problem selbst lösen, allerdings haben wir nun nicht beautiful soup genutzt. Es besteht hier also kein weiterer Support Bedarf von Ihnen für dieses Problem!