>>323
HTTPRedirectHandlerの適宜記録するサブクラスつくって
urllib.request.build_opener([handler, ...]).open
かな

https://docs.python.org/ja/3/library/urllib.request.html
ここ読んだだけでぜんぜん試してもないけど