Git Product home page Git Product logo

webscraping's People

Contributors

dfinke avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

webscraping's Issues

First test run on my machine, I got the following errors

Command I used to run:

Get-PDFContent https://www.fas.org/sgp/crs/row/R42694.pdf

PSVersion: 3.0

Add-Type : Cannot bind parameter 'Path' to the target. Exception setting "Path": "Cannot find path 'C:\powershell\dev\itextsharp.dll' because it does not exist."
At C:\powershell\dev\Get-PDFContent.ps1:12 char:20

  • Add-Type -Path "$($commandPath)/itextsharp.dll"
    
  •                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : WriteError: (:) [Add-Type], ParameterBindingException
    • FullyQualifiedErrorId : ParameterBindingFailed,Microsoft.PowerShell.Commands.AddTypeCommand

New-Object : Cannot find type [iTextSharp.text.pdf.PdfReader]: make sure the assembly containing this type is loaded.
At C:\powershell\dev\Get-PDFContent.ps1:20 char:15

  • $reader = New-Object iTextSharp.text.pdf.PdfReader $pdfFile
    
  •           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidType: (:) [New-Object], PSArgumentException
    • FullyQualifiedErrorId : TypeNotFound,Microsoft.PowerShell.Commands.NewObjectCommand

New-Object : Cannot find type [iTextSharp.text.pdf.parser.SimpleTextExtractionStrategy]: make sure the assembly containing this type is loaded.
At C:\powershell\dev\Get-PDFContent.ps1:22 char:17

  • $strategy = New-Object iTextSharp.text.pdf.parser.SimpleTextExtractionStrate ...
    
  •             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidType: (:) [New-Object], PSArgumentException
    • FullyQualifiedErrorId : TypeNotFound,Microsoft.PowerShell.Commands.NewObjectCommand

You cannot call a method on a null-valued expression.
At C:\powershell\dev\Get-PDFContent.ps1:28 char:5

  • $reader.Close()
    
  • ~~~~~~~~~~~~~~~
    
    • CategoryInfo : InvalidOperation: (:) [], RuntimeException
    • FullyQualifiedErrorId : InvokeMethodOnNull

How can i read Password secured files using PowerShell?

Hi Doug Finke,

This is really awesome functionality from PowerShell, but How can i read Password protected PDF files? We have plan to use Password protected PDF files instead of Plain Text CSV files after seeing your function using PowerShell.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.