From c5cf1359762274a17fb139944405c02618996700 Mon Sep 17 00:00:00 2001 From: Mark Powers Date: Mon, 23 Nov 2020 20:21:59 -0600 Subject: Fix youtube feeds --- instagram.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 instagram.js (limited to 'instagram.js') 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 -- cgit v1.2.3