Skip to content

Instantly share code, notes, and snippets.

View mxwright's full-sized avatar

Michael Wright mxwright

View GitHub Profile
@mxwright
mxwright / instarss.php
Last active May 19, 2021 15:45 — forked from jonathanbell/Instarss.md
Make a RSS feed from an Instagram user's username.
<?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.');