This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2"> | |
<Document id="feat_17054"> | |
<Placemark id="feat_17055"> | |
<name>Kirstenbosch</name> | |
<Point id="geom_17038"> | |
<coordinates>44.05053477,-91.6477914,0.0</coordinates> | |
</Point> | |
</Placemark> | |
<Placemark id="feat_17056"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2"> | |
<Document id="feat_17054"> | |
<Placemark id="feat_17055"> | |
<name>Kirstenbosch</name> | |
<Point id="geom_17038"> | |
<coordinates>44.05053477,-91.6477914,0.0</coordinates> | |
</Point> | |
</Placemark> | |
<Placemark id="feat_17056"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2"> | |
<Document id="feat_17146"> | |
<Placemark id="feat_17147"> | |
<name>Holy hannah banana jeebus this vape has me baked as cake</name> | |
<Point id="geom_17128"> | |
<coordinates>44.05053477,-91.6477914,0.0</coordinates> | |
</Point> | |
</Placemark> | |
<Placemark id="feat_17148"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2"> | |
<Document id="feat_47"> | |
<Placemark id="feat_48"> | |
<name>Holy hannah banana jeebus this vape has me baked as cake</name> | |
<Point id="geom_45"> | |
<coordinates>44.05053477,-91.6477914,0.0</coordinates> | |
</Point> | |
</Placemark> | |
<Placemark id="feat_49"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2"> | |
<Document id="feat_93"> | |
<Placemark id="feat_94"> | |
<name>Holy hannah banana jeebus this vape has me baked as cake</name> | |
<Point id="geom_90"> | |
<coordinates>-91.6477914,44.05053477,0.0</coordinates> | |
</Point> | |
</Placemark> | |
<Placemark id="feat_95"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2"> | |
<Document id="feat_185"> | |
<Placemark id="feat_186"> | |
<name>Holy hannah banana jeebus this vape has me baked as cake</name> | |
<Point id="geom_180"> | |
<coordinates>-91.6477914,44.05053477,0.0</coordinates> | |
</Point> | |
</Placemark> | |
<Placemark id="feat_187"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import simplekml | |
kml = simplekml.Kml() | |
df.apply(lambda X: kml.newpoint(name=X["name"], coords=[( X["longitude"],X["latitude"])]) ,axis=1) | |
kml.save(path = "data.kml") |
This file has been truncated, but you can view the full file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"metadata": { | |
"name": "bokennotebook" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<kml xmlns="http://www.opengis.net/kml/2.2" xmlns:gx="http://www.google.com/kml/ext/2.2"> | |
<Document id="feat_63"> | |
<Placemark id="feat_64"> | |
<name>New York city</name> | |
<Point id="geom_50"> | |
<coordinates>-74.007124,40.71455,0.0</coordinates> | |
</Point> | |
</Placemark> | |
<Placemark id="feat_65"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Why does this work fine | |
from rescrape.AbstractScraper import RecipeScraper | |
RecipeScraper(url) | |
# But this fails with "AttributeError: 'module' object has no attribute 'AbstractScraper'" | |
import rescrape | |
rescrape.AbstractScraper.RecipeScraper(url) |