Skip to content

Instantly share code, notes, and snippets.

View ignaciocastro's full-sized avatar

Ignacio Castro ignaciocastro

View GitHub Profile
@ignaciocastro
ignaciocastro / instarss.php
Last active October 16, 2018 16:36 — forked from mxwright/instarss.php
Make a RSS feed from an Instagram user's username. Same fork but with enclosure rss tag added (image also shows as media file)
<?php
if (!isset($_GET['user'])) {
if (!isset($_GET['hashtag'])) {
exit('Not a valid RSS feed. You didn\'nt provide an Instagram user or hashtag. Send one via a GET variable. Example .../instarss.php?user=snoopdogg');
}
}
if (isset($_GET['user']) && isset($_GET['hashtag'])) {
exit('Don\'t request both user and hashtag. Request one or the other.');