Source

grab / test3.py

Full commit
1
2
3
4
5
6
7
8
from grab import Grab

g = Grab()

g.setup(cookiefile = '/tmp/cookies.txt')
g.setup(cookies={'test': 'test'})
g.go('http://ya.ru/')
print g.response.cookies