Facebook
From Baby Bushbaby, 1 Year ago, written in PHP.
This paste is a reply to Re: Untitled from Sludgy Echidna - view diff
Embed
Download Paste or View Raw
Hits: 249
  1. <?php
  2. $url = 'https://zaq2.pl/video/izdii';
  3. $response = file_get_contents($url, false, stream_context_create(['ssl' => ['verify_peer' => false, 'verify_peer_name' => false]]));
  4. preg_match('#data-video-url="(.*?)".*data-file-name="(.*?)".*data-file-extension="(.*?)"#s', $response, $match);
  5. $path = './download/'.$match[2].'.'.$match[3];
  6.  
  7. if($match !== null && file_exists($path) === false)
  8. {
  9.  echo 'wget --referer="'.$url.'" -c "'.$match[1].'" -O "'.$path.'"';
  10. }
  11. ?>

Replies to Re: Re: Untitled rss

Title Name Language When
Re: Re: Re: Untitled Thundering Mockingbird php 1 Year ago.