personal knowledgebase
QOSM and OpenLayers plugins, if not already installed.Web/OpenLayers plugin/OpenStreetMap/OpenStreetMap menu item. This will add an OpenStreetMap layer to the map.Vector/Quick OSM/QuickOSM menu item to start the Quick OSM plugin.Quick query tab item, enter admin_level under the Key textbox and 6 (as an example) for Value. Make sure Extents of the map canvas option is checked.Run query. It will produce 3 new vector layers (point, polyline and polygon) that you can save as shapefiles.Tested in QGIS 2.18.12.