Z
Z
ZaurK2017-01-22 11:17:01
Parsing
ZaurK, 2017-01-22 11:17:01

How is authorization done with phantomjs?

Good afternoon! There are several pages on the site that are available only after authorization. Actually, the question on phantomjs, is it enough to log in once or will you have to go through authorization on each page? I saw in the documentation that phantomjs works with cookies - can I dig in this direction? If it's not difficult, tell me where to see an example? Thanks in advance.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
azShoo, 2017-01-23
@azShoo

You can do authorization.
You can set a cookie.
Both options work.
The example googles for one search query. For example, stackoverflow.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question