I have always seen everywhere in JSOUP code.
JSOUP
Useragent installed in Mozilla.
Useragent
What if I want to install it in google chrome or opera?
Jsoup.connect(url) .userAgent("Mozilla");
How can i achieve this? Thanks in advance.
there:
http://www.useragentstring.com/pages/Opera/ or http://www.useragentstring.com/pages/Chrome/
and get the one you like.
eg:
Jsoup.connect(url).userAgent("Opera/9.80 (Macintosh; Intel Mac OS X 10.6.8; U; fr) Presto/2.9.168 Version/11.52");
Source: https://habr.com/ru/post/913392/More articles:Issues with query Mongo value-in-array: $ not operator does not work, and ObjectIds cannot be selected - mongodbCompiling an embedded COM client client in a client using VS2010 - c ++How can I format json date in dd / mm / yy format in javascript? - jsonImage compression in android - androidThe full resource URL in the Rails.js.erb file is ruby-on-rails-3PHP S3 download progress - phpGozzle 6 download progress - phpChecking the presence of values โโof object attributes in HTML code using Delphi - htmlProviding a SeServiceLogonRight to a PowerShell user - powershellThe syntax of an even-class element shown in ILSpy - syntaxAll Articles