You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Remove web scraping for app version from Mac App Store.
In 2021, some code was added to run immediately after each iTunes Search web API lookup (but not after iTunes Search web API searches) to see if the Mac App Store app web page for the found app reports a newer version of the app than did the iTunes Search web API, because that sometimes listed a newer version faster than the iTunes Search web API.
It uses a very brittle regex to find the version. The regex doesn't work on the one app page I looked at. Getting it to work without possibly returning versions for platforms other than macOS will be hard, and it will massively complicate providing raw JSON in my output overhaul (#190 & #626). It also slows down multiple commands.
The Mac App Store seems to work on eventual consistency. mas now uses the iTunes Search web API queries that I found to return the most up-to-date version info when I tested it a few months ago. They still might be slower (or might be the same or faster) than the Mac App Store app web page, but I don't think that we should complicate things, provide one more source of inconsistency, slow performance, or use a massively error-prone, brittle source of info for anything, let alone something as foundational to mas as app versions. It will also be even more complex if mas supports iOS & iPadOS apps.
Therefore I am removing the code.
The text was updated successfully, but these errors were encountered:
Remove web scraping for app version from Mac App Store.
In 2021, some code was added to run immediately after each iTunes Search web API lookup (but not after iTunes Search web API searches) to see if the Mac App Store app web page for the found app reports a newer version of the app than did the iTunes Search web API, because that sometimes listed a newer version faster than the iTunes Search web API.
It uses a very brittle regex to find the version. The regex doesn't work on the one app page I looked at. Getting it to work without possibly returning versions for platforms other than macOS will be hard, and it will massively complicate providing raw JSON in my output overhaul (#190 & #626). It also slows down multiple commands.
The Mac App Store seems to work on eventual consistency. mas now uses the iTunes Search web API queries that I found to return the most up-to-date version info when I tested it a few months ago. They still might be slower (or might be the same or faster) than the Mac App Store app web page, but I don't think that we should complicate things, provide one more source of inconsistency, slow performance, or use a massively error-prone, brittle source of info for anything, let alone something as foundational to mas as app versions. It will also be even more complex if mas supports iOS & iPadOS apps.
Therefore I am removing the code.
The text was updated successfully, but these errors were encountered: