Re: [CGI] Instagram Photo Real Link Resolver

From Perl Pelican, 4 Years ago, written in Bash, viewed 344 times. This paste is a reply to [CGI] Instagram Photo Real Link Resolver from NAT - view diff
URL https://code.nat.moe/view/4b632da1 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>"

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

Here you can reply to the paste above

captcha