What was the remaining Jewish community in Jerusalem like after expulsion - 1900s?

From what I understand, a small Jewish community always remained in Jerusalem for thousands of years after the expulsion that created the diaspora. What were they like? Did they have contact with the wider Jewry? Curious what’s know about them. How were they able to stay?