Handle instagram.com/share/ URLs

- added Sec-Fetch* headers for proper redirect
- fixed formatting
- restore 'guide' test
- integrate in PostExtractor code
This commit is contained in:
Etienne Boucher
2025-03-25 01:53:07 -04:00
committed by Mike Fährmann
parent 2798fb8a80
commit e6f4dcf90f
2 changed files with 26 additions and 2 deletions

View File

@@ -277,4 +277,18 @@ __tests__ = (
"#class" : instagram.InstagramPostExtractor,
},
{
"#url" : "https://www.instagram.com/share/p/BACiUUUYQV",
"#category": ("", "instagram", "post"),
"#class" : instagram.InstagramPostExtractor,
"shortcode" : "C6q-XdvsU5v",
},
{
"#url" : "https://www.instagram.com/share/reel/BARSSL4rTu",
"#category": ("", "instagram", "post"),
"#class" : instagram.InstagramPostExtractor,
"shortcode" : "DHbVbT4Jx0c",
}
)