[instagram] detect homepage redirects (#8714)

This commit is contained in:
Mike Fährmann
2025-12-29 16:28:37 +01:00
parent e12b17649a
commit ebfd87bbb0

View File

@@ -137,6 +137,8 @@ class InstagramExtractor(Extractor):
page = "login"
elif "/challenge/" in url:
page = "challenge"
elif 24 < len(url) < 28 and url[-1] == "/":
page = "home"
else:
page = None