@@ -0,0 +1,403 @@
+import osmium%0Aimport sys%0A%0Aclass NamesHandler(osmium.SimpleHandler):%0A%0A    def output_pubs(self, tags):%0A        if 'amenity' in tags and tags%5B'amenity'%5D == 'pub':%0A            if 'name' in tags:%0A                print tags%5B'name'%5D%0A%0A    def node(self, n):%0A        self.output_pubs(n.tags)%0A%0A    def way(self, w):%0A        self.output_pubs(w.tags)%0A%0A%0Aosmium.apply(osmium.io.Reader(sys.argv%5B1%5D), NamesHandler())%0A%0A

add another simple example