How to get the elements inside a boundingbox?

ohh thank you that’s what I want,

any links to get familiar with such functions and python?