OSM rivers to one main branch Python

From wikiluntti

Introduction


OSM Geofabrik provides huge amount of GIS data. I need to extract one main branch of that all.