-
-
Save senorgeno/7047a1d65464110023144159f7ca17dc to your computer and use it in GitHub Desktop.
Insta Embed Script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Title</title> | |
</head> | |
<body> | |
<!--1. Hit this url to get all the graph edges - https://www.instagram.com/jervoisakl/?__a=1 using the insta username--> | |
<!--2. Store all the short codes for each of the users GraphImage nodes.--> | |
<!--3. Next we can get the embed script by hitting this url - https://api.instagram.com/oembed/?url=http://instagr.am/p/{short_code}/ | |
e.g. https://api.instagram.com/oembed/?url=http://instagr.am/p/BgPrjlfHcoB/ | |
--> | |
<!--4. We will need to unseralize the html element and then extract the block quote and store this in the database. They will look like the following--> | |
<blockquote class="instagram-media" data-instgrm-captioned | |
data-instgrm-permalink="https://www.instagram.com/p/BgPrjlfHcoB/" data-instgrm-version="8" | |
style=" background:#FFF; border:0; border-radius:3px; box-shadow:0 0 1px 0 rgba(0,0,0,0.5),0 1px 10px 0 rgba(0,0,0,0.15); margin: 1px; max-width:658px; padding:0; width:99.375%; width:-webkit-calc(100% - 2px); width:calc(100% - 2px);"> | |
<div style="padding:8px;"> | |
<div style=" background:#F8F8F8; line-height:0; margin-top:40px; padding:33.3125% 0; text-align:center; width:100%;"> | |
<div style=" background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAMAAAApWqozAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAMUExURczMzPf399fX1+bm5mzY9AMAAADiSURBVDjLvZXbEsMgCES5/P8/t9FuRVCRmU73JWlzosgSIIZURCjo/ad+EQJJB4Hv8BFt+IDpQoCx1wjOSBFhh2XssxEIYn3ulI/6MNReE07UIWJEv8UEOWDS88LY97kqyTliJKKtuYBbruAyVh5wOHiXmpi5we58Ek028czwyuQdLKPG1Bkb4NnM+VeAnfHqn1k4+GPT6uGQcvu2h2OVuIf/gWUFyy8OWEpdyZSa3aVCqpVoVvzZZ2VTnn2wU8qzVjDDetO90GSy9mVLqtgYSy231MxrY6I2gGqjrTY0L8fxCxfCBbhWrsYYAAAAAElFTkSuQmCC); display:block; height:44px; margin:0 auto -44px; position:relative; top:-22px; width:44px;"></div> | |
</div> | |
<p style=" margin:8px 0 0 0; padding:0 4px;"><a href="https://www.instagram.com/p/BgPrjlfHcoB/" | |
style=" color:#000; font-family:Arial,sans-serif; font-size:14px; font-style:normal; font-weight:normal; line-height:17px; text-decoration:none; word-wrap:break-word;" | |
target="_blank">Bring some friends, a special one, or them all. | |
Experience what makes our reputation so hard to beat. 🥩 🥩 Reserve your table.</a></p> | |
<p style=" color:#c9c8cd; font-family:Arial,sans-serif; font-size:14px; line-height:17px; margin-bottom:0; margin-top:8px; overflow:hidden; padding:8px 0 7px; text-align:center; text-overflow:ellipsis; white-space:nowrap;"> | |
A post shared by <a href="https://www.instagram.com/jervoisakl/" | |
style=" color:#c9c8cd; font-family:Arial,sans-serif; font-size:14px; font-style:normal; font-weight:normal; line-height:17px;" | |
target="_blank"> Jervois Steak House Auckland</a> (@jervoisakl) on | |
<time style=" font-family:Arial,sans-serif; font-size:14px; line-height:17px;" | |
datetime="2018-03-13T01:30:04+00:00">Mar 12, 2018 at 6:30pm PDT | |
</time> | |
</p> | |
</div> | |
</blockquote> | |
<blockquote class="instagram-media" data-instgrm-captioned | |
data-instgrm-permalink="https://www.instagram.com/p/Bgm4bPFhkmz/" data-instgrm-version="8" | |
style=" background:#FFF; border:0; border-radius:3px; box-shadow:0 0 1px 0 rgba(0,0,0,0.5),0 1px 10px 0 rgba(0,0,0,0.15); margin: 1px; max-width:658px; padding:0; width:99.375%; width:-webkit-calc(100% - 2px); width:calc(100% - 2px);"> | |
<div style="padding:8px;"> | |
<div style=" background:#F8F8F8; line-height:0; margin-top:40px; padding:33.177083333333336% 0; text-align:center; width:100%;"> | |
<div style=" background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACwAAAAsCAMAAAApWqozAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAMUExURczMzPf399fX1+bm5mzY9AMAAADiSURBVDjLvZXbEsMgCES5/P8/t9FuRVCRmU73JWlzosgSIIZURCjo/ad+EQJJB4Hv8BFt+IDpQoCx1wjOSBFhh2XssxEIYn3ulI/6MNReE07UIWJEv8UEOWDS88LY97kqyTliJKKtuYBbruAyVh5wOHiXmpi5we58Ek028czwyuQdLKPG1Bkb4NnM+VeAnfHqn1k4+GPT6uGQcvu2h2OVuIf/gWUFyy8OWEpdyZSa3aVCqpVoVvzZZ2VTnn2wU8qzVjDDetO90GSy9mVLqtgYSy231MxrY6I2gGqjrTY0L8fxCxfCBbhWrsYYAAAAAElFTkSuQmCC); display:block; height:44px; margin:0 auto -44px; position:relative; top:-22px; width:44px;"></div> | |
</div> | |
<p style=" margin:8px 0 0 0; padding:0 4px;"><a href="https://www.instagram.com/p/Bgm4bPFhkmz/" | |
style=" color:#000; font-family:Arial,sans-serif; font-size:14px; font-style:normal; font-weight:normal; line-height:17px; text-decoration:none; word-wrap:break-word;" | |
target="_blank">Our selection of cuts is second to none. Try | |
something new next time you dine with us. Left to right: - Robbins Island wagyu sirloin - 1824 rib eye - | |
Japanese A5 Zen-Hoh wagyu sirloin</a></p> | |
<p style=" color:#c9c8cd; font-family:Arial,sans-serif; font-size:14px; line-height:17px; margin-bottom:0; margin-top:8px; overflow:hidden; padding:8px 0 7px; text-align:center; text-overflow:ellipsis; white-space:nowrap;"> | |
A post shared by <a href="https://www.instagram.com/jervoisakl/" | |
style=" color:#c9c8cd; font-family:Arial,sans-serif; font-size:14px; font-style:normal; font-weight:normal; line-height:17px;" | |
target="_blank"> Jervois Steak House Auckland</a> (@jervoisakl) on | |
<time style=" font-family:Arial,sans-serif; font-size:14px; line-height:17px;" | |
datetime="2018-03-22T01:45:03+00:00">Mar 21, 2018 at 6:45pm PDT | |
</time> | |
</p> | |
</div> | |
</blockquote> | |
<script async defer src="//www.instagram.com/embed.js"></script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
=