-
Hi, What I specifically need is to sign in to my twitter or any other platform and then download images from another user that I follow. I want to use this within my other python code to automate a simple check and done task written on python. How to use this as a function of my code avoiding logging in repeatedly to the platform (twitter or others) and download the images straight to a given folder? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Set all necessary options with Example: from gallery_dl import config, job, output
def init():
config.set((), "base-directory", "/target/dir/")
config.set((), "directory", ())
config.set(("extractor", "twitter"), "username", "MY_USER")
config.set(("extractor", "twitter"), "password", "MY_PASS")
def download(url):
return job.DownloadJob(url).run()
Login sessions get cached in memory and |
Beta Was this translation helpful? Give feedback.
Set all necessary options with
config.set()
and runjob.DownloadJob(url).run()
to download files.Example:
Login sessions get cached in memory and
cache.file