title: How to retrieve the certain road type(primary, seconday, tertiary, etc) in Openstreetmap with Python?
body: <p>I'm trying to get different classifications of road type in OSM with python, after browsed several relevant web pages, I've got this so far:</p>
  
  <pre><code>import osmnx as ox
  place_name = "zurich, switzerland"
  graph = ox.graph_from_place(place_name, network_type='drive')
  fig, ax = ox.plot_graph(graph, fig_height=5, node_size=0)
  </code></pre>
  
  <p>the network_type only include 'drive','walk',etc
  but I'd like to get the Highway tag, like'primary','secondary','tertiary',this kind of type road network respectively, how should I do?</p>