P
P
pixal2016-08-17 14:07:40
Python
pixal, 2016-08-17 14:07:40

How to pass cookies when parsing a web page in python?

I need a standard solution that does not use third-party libraries.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zigen, 2016-08-17
@zigen

import requests

cookie = {'session': '17ab96bd8ffbe8ca58a78657a918558'}

r = requests.post('http://ya.ru', cookies=cookie)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question