jsvine / waybackpack

Download the entire Wayback Machine archive for a given URL.
MIT License
2.8k stars 189 forks source link

How to run waybackpack in Python shell? #53

Open Mennaruuk opened 2 years ago

Mennaruuk commented 2 years ago

Hello jsvine, I hope you are feeling well.

How do I run waybackpack in Python shell? I would like to call it, but unfortunately the only way I can do that is with os.system, which isn't great. Can I run waybackpack in a way similar to requests or tqdm, and if so, how?

I tinkered around with the following, and I got an error saying the module is not callable.

    waybackpack("https://cnn.com")
TypeError: 'module' object is not callable

Thank you.

jsvine commented 2 years ago

Hi @Mennaruuk, perhaps the code in the tests/ directory are helpful for demonstrating the usage, e.g., here: https://github.com/jsvine/waybackpack/blob/master/tests/test-download.py