I am writing a parser on python.
The pages I need are only seen by an authorized user. I logged in via chrome / firefox, but the parser is given an authorization page.
Where to look?
I am writing a parser on python.
The pages I need are only seen by an authorized user. I logged in via chrome / firefox, but the parser is given an authorization page.
Where to look?
The fact is that most likely your parser does not support authorization. The fact that you entered the site through the browser does not mean anything, because the browser and your parser are different applications.
In order for your parser to be able to use browser data to enter, it must be passed to it as a cookie. You can see which cookies the site puts in the Chrome developer console (Ctrl + I):
You can look for the python library mechanize. There are examples with authorization and further work with the site. It is described simply, the examples are simple. I think the difficulties will not arise.
Source: https://ru.stackoverflow.com/questions/448540/
All Articles