Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to run waybackpack in Python shell? #53

Open
Mennaruuk opened this issue Feb 5, 2022 · 1 comment
Open

How to run waybackpack in Python shell? #53

Mennaruuk opened this issue Feb 5, 2022 · 1 comment

Comments

@Mennaruuk
Copy link

Mennaruuk commented Feb 5, 2022

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
Copy link
Owner

jsvine commented Feb 16, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants