Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ORIGINAL CODE
- -------------------------
- #extract utils data and clean
- $listbook=gci $rootpath -File -filter *.pdf | foreach { New-Object psobject -Property @{file=$_.fullname; books= ((iwr "https://arxiv.org/abs/$($_.BaseName)").ParsedHtml.body.outerText | ConvertFrom-String -TemplateContent $template)}} | select file -ExpandProperty books | select file, @{N="Subject";E={Clean-InvalidPathChars $_.subject}}, @{N="Title";E={Clean-InvalidFileNameChars $_.title}}
- -----------------
- INTO like this ?
- -----------------
- #extract utils data and clean
- $listbook=gci $rootpath -File -filter *.pdf | foreach { New-Object psobject -Property @{file=$_.fullname; books= (($wr = iwr "arxiv.org/abs/quant-ph/9802001";;)")$outer = $wr.ParsedHtml.body.outerHTML; | $outer | ConvertFrom-String -TemplateContent $template;)}} | select file -ExpandProperty books | select file, @{N="Subject";E={Clean-InvalidPathChars $_.subject}}, @{N="Title";E={Clean-InvalidFileNameChars $_.title}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement