Skip to content

Instantly share code, notes, and snippets.

@andrewiankidd
Created April 8, 2018 22:32
Show Gist options
  • Save andrewiankidd/8589dcab04996f214920a3d02865df93 to your computer and use it in GitHub Desktop.
Save andrewiankidd/8589dcab04996f214920a3d02865df93 to your computer and use it in GitHub Desktop.
noco.tv scraper
(Invoke-RestMethod -ContentType "application/octet-stream" https://pastebin.com/raw/3AXTMQFk) -split "`r`n"|%{$_;$v=(Invoke-RestMethod -ContentType "application/octet-stream" $_|%{[regex]::Match($_,'"(http).+(video.noco.tv).+"')}).value;if($v){Add-Content $v -Path "vidlinks.txt";$v}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment