Embodiments of the present disclose provide a method of sorbing one or more compounds from a fluid, wherein the method may include contacting a M-soc-MOF composition with a fluid containing at least H2S and one or more of CO2 and CH4; and sorbing at least H2S from the fluid. Embodiments of the present disclosure provide a membrane that may include a metal-organic framework (MOF) composition, wherein the MOF composition includes a M-soc-MOF composition, where M is a metal and soc is a square-octahedral topology, and wherein the M-soc-MOF composition is a continuous thin film on a support.