Skip to content

Commit

Permalink
Update Chrome User-Agent headers
Browse files Browse the repository at this point in the history
  • Loading branch information
d4n3436 committed Aug 19, 2024
1 parent 8fb08c4 commit 2e2e06d
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/Apis/Google/GoogleLensClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace Fergun.Apis.Google;
/// </summary>
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;
Expand Down
2 changes: 1 addition & 1 deletion src/Apis/Musixmatch/MusixmatchClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<JsonDocument> _retryPolicy;
private readonly HttpClient _httpClient;
private readonly MusixmatchClientState _state;
Expand Down
2 changes: 1 addition & 1 deletion src/Apis/Urban/UrbanDictionary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ namespace Fergun.Apis.Urban;
/// </summary>
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/");

Expand Down
2 changes: 1 addition & 1 deletion src/Apis/WolframAlpha/WolframAlphaClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ namespace Fergun.Apis.WolframAlpha;
/// </summary>
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"
Expand Down
2 changes: 1 addition & 1 deletion src/Apis/Yandex/YandexImageSearch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ namespace Fergun.Apis.Yandex;
/// </summary>
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;
Expand Down
2 changes: 1 addition & 1 deletion src/Entities/Constants.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}

0 comments on commit 2e2e06d

Please sign in to comment.