wiltaylor / ScraperionFramework

Simple web and screen scraping library and powershell module
MIT License
16 stars 3 forks source link

Connect-WebScraper is not Connecting or WebScrapping #2

Open ghost opened 4 years ago

ghost commented 4 years ago

CategoryInfo : NotSpecified: (:) [Connect-WebScraper], AggregateException FullyQualifiedErrorId : System.AggregateException,Scraperion.ConnectWebScraper

I even built it from source in visual studio and couldn't figure it out.

Awesome stuff though!

wiltaylor commented 4 years ago

Yeah, think the dependancy I am working with broke. I might have more luck changing over to talking to chromium directly via a WebSocket like how Selenium does.

Charl-Marais commented 3 years ago

Seems this issues is still ongoing.

wisemoth commented 2 years ago

I think this might be related?

> Connect-WebScraper -Url bbc.com
Connect-WebScraper : One or more errors occurred.
At line:1 char:1
+ Connect-WebScraper -Url bbc.com
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [Connect-WebScraper], AggregateException
    + FullyQualifiedErrorId : System.AggregateException,Scraperion.ConnectWebScraper

> $error[0].Exception.InnerException.ToString()

System.IO.FileNotFoundException: Failed to launch chrome! path to executable does not exist
File name: 'C:\Users\<user-name-elided>\.local-chromium\Win64-564778\chrome-win32\chrome.exe'

I have chrome installed, but not there. I can't seem to find a way to (via Scraperion) influence PuppeteerSharp to use the extant Chrome (which was just installed via chromesetup.exe from Google.).

(Attempting to bodge with a symlink between expected location and extant location causes a different error)