Example of a Cross-Platform phantomjs based webscraper.
Scrapes the AskUbuntu homepage for all question-hyperlink
elements.
- Supported Windows or Linux environment (AMD64)
- Tested on Windows 10 and Ubuntu 18.04
- For x86, ARM, or other architectures you will need to adjust runtime identifiers and supply the appropriate PhantomJs executables. Your mileage may vary!
- .NET Core 2.2 SDK
- May require firewall rules to connect properly, especially on Windows.
- Locked to Selenium.WebDriver 3.13.0 since it is the latest version with PhantomJs support and .NET Standard support for use in .NET Core
- PhantomJs 2.1.1 binaries from phantomjs.org are already included in source control for Linux and Windows (64-bit)
- "Permission Denied" exceptions on Linux when trying to open/start the PhantomJs service/driver
- Most likely due to the included binary not being executable
chmod +x phantomjs
on the executable should fix this
- Debug/Diagnostic output suppression does not work on Linux (yet)
- Chris Sekira
This project is licensed under the MIT License - see the LICENSE.md file for details