Hi, how can I pick stocks that are constituents of SPY and then filter further based on historical P/E?

I would like to choose stocks that have reached a new P/E low.