This is my code

import urllib.request, urllib.parse,http.cookiejar
url="http://localhost/test.php"
cs=http.cookiejar.FileCookieJar("cookies.txt")
cs.load("cookies.txt",ignore_discard=False, ignore_expires=False)
opener=urllib.request.build_opener(urllib.request.HTTPCookieProcessor(cs))
y=opener.open(url)
print(y.read())

It seems to be correctly according to the Python 3.0 documentation (which is very,very poor). However i get an error: FileCookieJar has not attribue '_self_load'.

Please help.

error: FileCookieJar has not attribue '_self_load'.

Oh here

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.