A
A
ant20152017-12-01 16:47:33
Bots
ant2015, 2017-12-01 16:47:33

Imitation of the presence of the client on the server. How to pass the screen resolution to the web server?

You need to make a console application that will simulate the user's presence on the site. According to the specification, you need to make the server think that the browser is open at a resolution not less than the specified one. User Agent must be firefox. I'm trying to do it in python. They advised me requests or pucurl. Just do not understand how to solve the problem with the screen resolution.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
R
Rikcon, 2017-12-01
@Rikcon

Because you don't want to.
They generally know the screen resolution thanks to js, ​​and with this method, of course, it does not work.
You need to fully emulate the browser, I'm from the PHP world, so here is a link to what we use https://laravel.com/docs/5.5/dusk, you need something similar for python, I'm sure there is.

D
Dimonchik, 2017-12-01
@dimonchik2013

Selenium + headless chrome / PhantomJS / CasperJS / headless Firefox

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question