how to get a .osm file based on a manually selected area?

Hi, I was trying to get a .osm file by exporting a box area with the following link. But the server does not work.
Indeed, I have tried to download the .osm data of the whole country, but it is too big. And cropping it based on osmconvert and osmium do not work well with my work.

Hi and welcome to OSM and the forum

The Web-GUI doesn’t support large download of OSM-Data. Take a look at on how to get exports of larger areas.