I'm confused by this question. The requests library will put the cookies in the jar for you.
import requests
import cookielib
URL = '...whatever...'
jar = cookielib.CookieJar()
r = requests.get(URL, cookies=jar)
r = requests.get(URL, cookies=jar)
The first request to the URL will fill the jar. The second request will send the cookies back to the server. The same goes for the standard library's urllib module cookielib. (doc currently available for 2.x Version)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…