-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[New App Request] HL7 Spy #111
Comments
You could have a look at some of the other scripts in the Nevergreen Module Apps folder (https://github.com/DanGough/Nevergreen/tree/main/Nevergreen/Apps) as examples how you can create this for yourself. Hint: You should look at the Page Source for the Webpage (for example in Firefox open: view-source:https://hl7spy.ca/blog/), find in the page the code that surrounds the Download button so you have an idea how to build the regex search for URLPattern). To save you the effort, I have quickly knocked up the script for you (see below) Until this is included in a future Nevergreen release, you will need to save it as Get-InnerHarbourHL7Spy.ps1 into your local NeverGreen Modules Apps folder, then either run silently: N.B. This script will work so long as the latest version is always listed first on this page (as it is currently), But, if Inner Harbour Software decide to change the page layout or the URL in the future, this script will break, so may need fixing / updating in the future.
|
BTW, I am toying with some different ways to make all of this a lot simpler, so that scraping a page for an app can be done in a single command. I'll have to have a think about how to handle apps where you want more than one major version returned though! |
Thank you @AScott-WWF this is making a bit more sense to me! I suppose we could make this a bit safer and more defensive if we had logic for computing the greatest version in a list of semantic versions? We don't already have that? |
Adds a plugin Get-InnerHarbourHL7Spy.ps1 and a new private function Parse-SemVer for interrogating SemVers. https://hl7spy.ca/blog/
Let me know what you think of the PR. I tried to make it a bit more defensive as mentioned. |
BTW, [version]'1.2.3.4' will already return an object with separate properties for major/minor/etc. I have some functions for sanitising and converting versions that I'd like to bring in, along with a generic scraping function that would drastically simplify most of the app scripts in this project. I'll be looking to do a major update later this year! |
Adds a plugin Get-InnerHarbourHL7Spy.ps1 and a new private function Parse-SemVer for interrogating SemVers. https://hl7spy.ca/blog/
Adds a plugin Get-InnerHarbourHL7Spy.ps1 and a new private function Parse-SemVer for interrogating SemVers. https://hl7spy.ca/blog/
Adds a plugin Get-InnerHarbourHL7Spy.ps1 and a new private function Parse-SemVer for interrogating SemVers. https://hl7spy.ca/blog/
A new version of the PR after that insight. #113 |
https://hl7spy.ca/blog/
I would appreciate some guidance so that I can raise the PR myself for this and a number of other apps!
The text was updated successfully, but these errors were encountered: