diff --git a/src/Apis/Google/GoogleLensClient.cs b/src/Apis/Google/GoogleLensClient.cs index 1948376..d5f6021 100644 --- a/src/Apis/Google/GoogleLensClient.cs +++ b/src/Apis/Google/GoogleLensClient.cs @@ -13,7 +13,7 @@ namespace Fergun.Apis.Google; /// public sealed class GoogleLensClient : IGoogleLensClient, IDisposable { - private const string DefaultUserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.63 Safari/537.36"; + private const string DefaultUserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36"; private readonly HttpClient _httpClient; private bool _disposed; diff --git a/src/Apis/Musixmatch/MusixmatchClient.cs b/src/Apis/Musixmatch/MusixmatchClient.cs index 550c354..b72f048 100644 --- a/src/Apis/Musixmatch/MusixmatchClient.cs +++ b/src/Apis/Musixmatch/MusixmatchClient.cs @@ -18,7 +18,7 @@ namespace Fergun.Apis.Musixmatch; public sealed class MusixmatchClient : IMusixmatchClient, IDisposable { private const string AppId = "web-desktop-app-v1.0"; // community-app-v1.0, web-desktop-app-v1.0, android-player-v1.0, mac-ios-v2.0 - private const string DefaultUserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36"; + private const string DefaultUserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36"; private readonly AsyncRetryPolicy _retryPolicy; private readonly HttpClient _httpClient; private readonly MusixmatchClientState _state; diff --git a/src/Apis/Urban/UrbanDictionary.cs b/src/Apis/Urban/UrbanDictionary.cs index e796bcc..45b994e 100644 --- a/src/Apis/Urban/UrbanDictionary.cs +++ b/src/Apis/Urban/UrbanDictionary.cs @@ -13,7 +13,7 @@ namespace Fergun.Apis.Urban; /// public sealed class UrbanDictionary : IDisposable, IUrbanDictionary { - private const string DefaultUserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.63 Safari/537.36"; + private const string DefaultUserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36"; private static readonly Uri _apiEndpoint = new("https://api.urbandictionary.com/v0/"); diff --git a/src/Apis/WolframAlpha/WolframAlphaClient.cs b/src/Apis/WolframAlpha/WolframAlphaClient.cs index 363e0c0..bd51b99 100644 --- a/src/Apis/WolframAlpha/WolframAlphaClient.cs +++ b/src/Apis/WolframAlpha/WolframAlphaClient.cs @@ -15,7 +15,7 @@ namespace Fergun.Apis.WolframAlpha; /// public sealed class WolframAlphaClient : IWolframAlphaClient, IDisposable { - private const string DefaultUserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36"; + private const string DefaultUserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36"; // This AppID is the result of an algorithm in the Android app that takes 2 byte arrays, // the first one comes from the values of the resource keys "app_one_id", "id_2_app", "appid_three", "four_appid" diff --git a/src/Apis/Yandex/YandexImageSearch.cs b/src/Apis/Yandex/YandexImageSearch.cs index 76bc302..245cd82 100644 --- a/src/Apis/Yandex/YandexImageSearch.cs +++ b/src/Apis/Yandex/YandexImageSearch.cs @@ -14,7 +14,7 @@ namespace Fergun.Apis.Yandex; /// public sealed class YandexImageSearch : IYandexImageSearch, IDisposable { - private const string DefaultUserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.63 Safari/537.36"; + private const string DefaultUserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36"; private static readonly HtmlParser _parser = new(); private readonly HttpClient _httpClient; private bool _disposed; diff --git a/src/Entities/Constants.cs b/src/Entities/Constants.cs index ec2e241..e9e1b64 100644 --- a/src/Entities/Constants.cs +++ b/src/Entities/Constants.cs @@ -46,5 +46,5 @@ public static class Constants public const string GoogleLensUrl = "https://lens.google.com"; - public const string ChromeUserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/125.0.0.0 Safari/537.36"; + public const string ChromeUserAgent = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/127.0.0.0 Safari/537.36"; } \ No newline at end of file