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
72 stars 16 forks source link

Microsoft PowerBI Desktop and Report Builder no longer working #52

Closed chezzer64 closed 11 months ago

chezzer64 commented 11 months ago

Get-NevergreenApp -Name MicrosoftPowerBIDesktop Get-NevergreenApp -Name MicrosoftPowerBIReportBuilder both now return "WARNING: No version found within...." when running: Get-Version -Uri 'https://www.microsoft.com/download/details.aspx?id=58494' -Pattern 'Version:\s+

((?:\d+.)+\d+)'

Guessing version pattern match regex probably need updating if Microsoft changed the webpage layout?

Thanks.

chezzer64 commented 11 months ago

I've done some testing and the following new regex pattern is working for me to get the PowerBI Version: '(?<=Version:)(?:.?)(\d+(.\d+){2,})(?:.?)(?=Date Published:)'

Should work for both PowerBI Desktop and Report Builder

Thanks.

DanGough commented 11 months ago

Thanks, I have a couple of broken apps to attend to and will push some updates out this weekend!

DanGough commented 11 months ago

I could not get that to work but this is pretty concise and does the job!

'Version:<.+?>((?:\d+.)+\d+)'