Skip to content

Instantly share code, notes, and snippets.

@dollabi11z
Created July 20, 2017 01:00
Show Gist options
  • Save dollabi11z/e3a180f0ce3702b29b5e595e316f01d4 to your computer and use it in GitHub Desktop.
Save dollabi11z/e3a180f0ce3702b29b5e595e316f01d4 to your computer and use it in GitHub Desktop.
random scraper 1
<head>
<meta name="robots" content="noindex, nofollow">
<meta name="revisit-after" content="3 days">
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="Tue, 01 Jan 2020 1:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />
</head>
<?php
function getURL($u){
$u = file_get_contents("http://{$u}");
return $u != false ? $u : "";
}
function GetStringBetween($string, $start, $finish){
$string = " ".$string;
$position = strpos($string, $start);
if ($position == 0) return "";
$position += strlen($start);
$length = strpos($string, $finish, $position) - $position;
return substr($string, $position, $length);
}
$stream = GetStringBetween(getURL("www.streamgaroo.com/streams/103/157"),"playlist.m3u8?id=", "'");
?>
<script type="text/javascript" src="http://p.jwpcdn.com/6/9/jwplayer.js?ver=6.9"></script><script type="text/javascript">
// jwplayer.key="N8zhkmYvvRwOhz4aTGkySoEri4x+9pQwR7GHIQ==";
jwplayer.key='N8zhkmYvvRwOhz4aTGkySoEri4x+9pQwR7GHIQ==';</script>
<div id="video">
</div><script type="text/javascript">
jwplayer('video').setup({
'skin': 'roundster',
logo: {
file: 'http://bmx-tv.net/uklogo.png',
position: 'top-right',
hide: 'false',
},
'file': "http://live-880.ld5.edge.filmon.com/live/22.low.stream/playlist.m3u8?id=<?=$stream?>",
'title': 'BMX-TV LIVE',
'aspectratio': '16:9',
stretching: 'exactfit',
'bufferlength': '5',
'height': '404',
'width': '640',
'primary': 'html5',
'controls': 'no',
'autostart':'true',
'wmode':'opaque',
'image': 'http://i.imgur.com/5CUP0Pk.png',
'abouttext':'PROTECTED STREAM',
'aboutlink':''
});
</script>
<center>
<input type="button" value="Pause" onClick="jwplayer().pause(true);"style="background:#71160f;color:white"name="button2">
<input type="button" value="Play" onClick="jwplayer().pause(false);"style="background:#71160f;color:white" name="button2">
<input type="button" value="Mute" onClick="jwplayer().setVolume(0);"style="background:#71160f;color:white" name="button2">
<input type="button" value="Unmute" onClick="jwplayer().setVolume(100);"style="background:#71160f;color:white" name="button2">
<input type="button" value="Vol 10%" onClick="jwplayer().setVolume(10);"style="background:#71160f;color:white" name="button2">
<input type="button" value="Vol 50%" onClick="jwplayer().setVolume(50);"style="background:#71160f;color:white" name="button2">
<input type="button" value="Vol 100%" onClick="jwplayer().setVolume(100);"style="background:#71160f;color:white" name="button2">
<head>
<meta name="robots" content="noindex, nofollow">
<meta name="revisit-after" content="3 days">
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="Tue, 01 Jan 2020 1:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />
</head>
Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/mSsGF on line 12
Warning: file_get_contents(http://www.streamgaroo.com/streams/103/157): failed to open stream: php_network_getaddresses: getaddrinfo failed: Name or service not known in /in/mSsGF on line 12
<script type="text/javascript" src="http://p.jwpcdn.com/6/9/jwplayer.js?ver=6.9"></script><script type="text/javascript">
// jwplayer.key="N8zhkmYvvRwOhz4aTGkySoEri4x+9pQwR7GHIQ==";
jwplayer.key='N8zhkmYvvRwOhz4aTGkySoEri4x+9pQwR7GHIQ==';</script>
<div id="video">
</div><script type="text/javascript">
jwplayer('video').setup({
'skin': 'roundster',
logo: {
file: 'http://bmx-tv.net/uklogo.png',
position: 'top-right',
hide: 'false',
},
'file': "http://live-880.ld5.edge.filmon.com/live/22.low.stream/playlist.m3u8?id=",
'title': 'BMX-TV LIVE',
'aspectratio': '16:9',
stretching: 'exactfit',
'bufferlength': '5',
'height': '404',
'width': '640',
'primary': 'html5',
'controls': 'no',
'autostart':'true',
'wmode':'opaque',
'image': 'http://i.imgur.com/5CUP0Pk.png',
'abouttext':'PROTECTED STREAM',
'aboutlink':''
});
</script>
<center>
<input type="button" value="Pause" onClick="jwplayer().pause(true);"style="background:#71160f;color:white"name="button2">
<input type="button" value="Play" onClick="jwplayer().pause(false);"style="background:#71160f;color:white" name="button2">
<input type="button" value="Mute" onClick="jwplayer().setVolume(0);"style="background:#71160f;color:white" name="button2">
<input type="button" value="Unmute" onClick="jwplayer().setVolume(100);"style="background:#71160f;color:white" name="button2">
<input type="button" value="Vol 10%" onClick="jwplayer().setVolume(10);"style="background:#71160f;color:white" name="button2">
<input type="button" value="Vol 50%" onClick="jwplayer().setVolume(50);"style="background:#71160f;color:white" name="button2">
<input type="button" value="Vol 100%" onClick="jwplayer().setVolume(100);"style="background:#71160f;color:white" name="button2">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment