diff options
author | Mark Powers <markppowers0@gmail.com> | 2020-11-23 20:21:59 -0600 |
---|---|---|
committer | Mark Powers <markppowers0@gmail.com> | 2020-11-23 20:21:59 -0600 |
commit | c5cf1359762274a17fb139944405c02618996700 (patch) | |
tree | 69e48f19a6d187eccb8cc50740aadf534781a0de /instagram.js | |
parent | a0dad259a6c767487be08afc666dbf2c923a6e25 (diff) |
Fix youtube feeds
Diffstat (limited to 'instagram.js')
-rw-r--r-- | instagram.js | 8 |
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 |