I am using cookielib(cookiejar named now in Python3) and mechanize.
I am importing this way
import requests
from bs4 import BeautifulSoup
import mechanize
try:
from cookielib import Cookie, CookieJar
except ImportError:
from http.cookiejar import Cookie, CookieJar as cookielib
but I keep getting this error (AttributeError: type object 'CookieJar' has no attribute 'LWPCookieJar') at this point of my code
# Cookie Jar
cj = cookielib.LWPCookieJar()
br.set_cookiejar(cj)
Any ideas?
Thanks a lot for your time!