[CGI] Instagram Photo Real Link Resolver

From NAT, 7 Years ago, written in Bash, viewed 860 times.
URL https://code.nat.moe/view/9df71791 Embed
Download Paste or View Raw
  1. #!/bin/bash
  2. # A really simple CGI to resolve Instagram photo share link and show original photo.
  3. # Use fcgi_param to set env QUERY_STRING. You might use fcgi.conf from php5-fpm, it will works.
  4. # License under DO WHAT FUCK YOU WANT ( DWFYW )
  5. echo "Content-type: text/html";echo "";
  6. echo -n "<img src=";curl --silent $QUERY_STRING | grep .jpg | awk '{print $3}'
  7. | awk -F "\"" '{print $2}';echo "></img>"

Replies to [CGI] Instagram Photo Real Link Resolver rss

Title Name Language When
Re: [CGI] Instagram Photo Real Link Resolver Commodious Crow bash 3 Years ago.
Re: [CGI] Instagram Photo Real Link Resolver Perl Pelican bash 3 Years ago.
[CGIv2] Instagram Photo Real Link Resolver NAT bash 7 Years ago.

Reply to "[CGI] Instagram Photo Real Link Resolver"

Here you can reply to the paste above

captcha