Using python to automatically archive webpage

Hello to everyone,

I’m trying to create a python script that will take as input a url and will record this webpage into an archive.

I haven’t goes so far yet because I cannot not find a example on how to use the pywb package.

Has anybody done something similar?

Any help will be appreciated