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

Using arguments when running gallery-dl in python #5521

Open
Armoredman10 opened this issue Apr 27, 2024 · 1 comment
Open

Using arguments when running gallery-dl in python #5521

Armoredman10 opened this issue Apr 27, 2024 · 1 comment
Labels

Comments

@Armoredman10
Copy link

Not exactly experienced in using gallery-dl but I've been able to run it with python using:

from gallery_dl.job import DownloadJob
from gallery_dl import config
config.load()
config.set((), "cookies", ["firefox"])
DownloadJob("LINK").run()

But I have no idea how to add arguments to this, is this possible and if so how?

@mikf
Copy link
Owner

mikf commented May 1, 2024

Using command-line arguments when calling gallery-dl functions directly from a Python script is not supported, but you can usually replicate the functionality with config.set(…) or by calling the same functions as gallery-dl would in its init code.

What exactly do you want to do?

@mikf mikf added the dev label May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants