aboutsummaryrefslogtreecommitdiff
path: root/instagram.js
diff options
context:
space:
mode:
Diffstat (limited to 'instagram.js')
-rw-r--r--instagram.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/instagram.js b/instagram.js
new file mode 100644
index 0000000..56b3785
--- /dev/null
+++ b/instagram.js
@@ -0,0 +1,8 @@
+async function get_insta(url) {
+ let insta_url = url + "?__a=1"
+ let res = await fetch(insta_url);
+ let json = await res.json();
+ let uid = json.graphql.user.id
+ let feed_url = `${base_url}/?action=display&bridge=Instagram&context=Username&u=${uid}&media_type=all&format=`;
+ return get_all_types(feed_url)
+} \ No newline at end of file