Closed a2689378 closed 1 year ago
module 'pywebcopy' has no attribute 'SESSION'
pywebcopy.SESSION Becomes unusable in the new version
This code that you wrote is for previous versions. Read the new documentation before reaching conclusions.
To set the cookies use the webpage.session object. You can even fill forms using Page object.
I have the same question as the asker and feel that it would be better to have more examples of cookies. Thank you for your work.
@likohank
from pywebcopy.configs import get_config
config = get_config(url, project_folder, project_name, bypass_robots, debug, delay, threaded)
page = config.create_page()
# here set your cookies
page.session.cookies.set('session-id', 'xxx')
page.get(url)
page.save_complete(pop=open_in_browser)
pywebcopy.SESSION Becomes unusable in the new version