php mail

mail(to,subject,message,headers,parameters);

W3Schools

Posted in php | Leave a comment

PS: parse links on webpage and download

Nice neat code to pickup links on web page and download

$psPage = Invoke-WebRequest “<<URL OF YOUR CHOICE>>”
$urls = $psPage.ParsedHtml.getElementsByTagName(“A”) | ? {$_.href -like “*.pdf”} | Select-Object -ExpandProperty href

$urls | ForEach-Object {Invoke-WebRequest -Uri $_ -OutFile ($_ | Split-Path -Leaf)}

 

https://daniel.streefkerkonline.com/2015/03/19/parse-a-web-page-and-download-all-pdfs/

Posted in powershell | Tagged | Leave a comment