I'm looking for getting latest version of python.
For example, I can find latest version of golang at https://go.dev/VERSION?m=text
Is there same thing as golang?
I'm looking for getting latest version of python.
For example, I can find latest version of golang at https://go.dev/VERSION?m=text
Is there same thing as golang?
On
$url = "https://www.python.org/downloads"
$doc = (Invoke-Webrequest $url).ParsedHTML # mshtml.HTMLDocumentClass
$as = $doc.Links
foreach($a in $as) {
if ($el.className -eq "button") {
Write-Output $el.innerText.split(" ")[-1] | Out-File -FilePath PYTHON_VERSION -encoding ASCII
# Write-Output $el.innerText.split(" ")[-1]> "PYTHON_VERSION"
break
}
}
Like answer which I accepted, also it is possible to use powershell or sh, but this is not I want to do.
Unlike Go, the long live python never care these trivial things.
It make me sad.
This may not be the best way to do it but you can interrogate the latest downloadable with this:
Output: