D
D
Dmitry Kudryashov2015-04-19 15:00:59
ubuntu
Dmitry Kudryashov, 2015-04-19 15:00:59

Grab in ubuntu saves cookies, but in Windows 8.1 it doesn't?

Good day!
The problem is this. I create a parser that logs into the site under an account. I work in Linux
The code looks like this:

Astro=Grab(log_file='Forum.html')
Astro.setup(reuse_cookies=True)
Astro.go(URL_login)#Переход на страницу регистрации
Astro.doc.set_input('user', Login)#Вводим имя пользователя
Astro.doc.set_input('passwrd', Password)#Вводим пароль
Astro.doc.set_input('cookielength', Cook_length)#Выставляем время сессии
Astro.doc.submit()#Нажатие кнопки "Регистрация"

In Ubuntu, when I look at the log file, I see that it is logged in under the account and everything is fine, but on Windows it doesn’t work - it doesn’t log in under the account or it works under the guest (Because of this, some partitions are not visible).
What could be the problem?
Even forcing cookies does not help.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question