DanGough / Nevergreen

This module is an alternative to Evergreen, and allows you to find the latest version and download URL for various Windows apps. Evergreen uses API queries to obtain its data whereas this module is more focussed on web scraping. This is more prone to breaking when websites are changed, hence the name.
The Unlicense
71 stars 16 forks source link

Fix RedstorBackupProStoragePlatformConsole #49 #59

Open ThatDraggyCodes opened 3 months ago

ThatDraggyCodes commented 3 months ago

Address Issue #49

Use user agent on PS5 to trick server into serving the website. Do not add user agent on PSCore for the same reason.

Tested on PowerShell 5.1.19041.4170 and PowerShell 7.4.1

> Get-NevergreenApp RedstorBackupProStoragePlatformConsole

Name         : Redstor Backup Pro Storage Platform Console
Architecture : x86
Type         : Exe
Version      : 24.1.3.12531
Uri          : https://redstorupdates.blob.core.windows.net/redstor/v24.01/Redstor%20Pro/RedstorBackupPro-SP-Console-24.1.3.12531.exe

While this works on my machine, I suppose it should be tested on other setups before being accepted.

DanGough commented 2 months ago

Hi, this is still giving me a 403 on PS5.1. Things may have changed yet again at their end since you submitted this!

ThatDraggyCodes commented 2 months ago

Seems the website is quite picky then. Still works for me...

I changed the approach though. Now multiple user agents will be tested and the first one that succeeds will be used. I just hope that there are enough to work more reliably on more setups / networks.