A
A
agent_22032021-02-12 18:44:06
PyQt
agent_2203, 2021-02-12 18:44:06

How to change UserAgent in PyQt5?

There is the following code:

usr = generate_user_agent()

app = QApplication(sys.argv) 
web = QWebView()
web.load(QUrl("https://юзерагент.рф/"))
web.show()
app.exec_()


I have a random UserAgent generated in the usr variable, can anyone tell me how to change it?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
D
Dr. Bacon, 2021-02-12
@bacon

ok google, "change user agent pyqt5"

A
Ankhena, 2017-09-17
@Ankhena

https://habrahabr.ru/company/netcracker/blog/277433/
yes, google will help you too -> "css vertical centering"

P
Pavel, 2017-09-17
@mrusklon

howtocenterincss.com

A
A person from Kazakhstan, 2017-09-17
@LenovoId

for page_title make display:table; nargin:auto; and width is not necessary if I understand correctly

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question