Akhrameev / InstagramStoriesSiriShortcut

Siri Shortcut for loading public Instagram Stories from Safari
MIT License
0 stars 0 forks source link

[QUESTION] What is the public URL used to get the stories? #1

Open roimulia opened 6 years ago

roimulia commented 6 years ago

What is the public URL used to get the stories? We are trying to understand how to fetch public stories from a regular URLSession call.

Thanks!

Akhrameev commented 6 years ago

Hi! I found similar Shortcut that used independent service https://wizblogger.com/instastory/story.php?user=User that provides a web-page with easy-parseable links to stories. So I don't have a direct link - but (if you wish) you can use the same trick: open that site and parse its content to get links to stories. I don't know where they get links to cdninstagram - but they did that trick. Note: they use some DDOS protection - so NSURLSession request to this site may return not interesting webpage without webview (that's why I use Safari extension for shortcut; previously without that protection they returned that easy-parseable html via ordinary HTTP GET request).

Hope that helps

Akhrameev commented 6 years ago

check this repo to find the proper way to access instagram stories or read their article. I think it should work. Not just one request - but without dependencies to side services: just using Instagram APIs.