Metal-to-non-metal transitions in high-temperature oxide superconductors monitored by photoelectron spectroscopy