Dear Users! Please post bug reports about FDM here!

How to call FDM from python?

Post a reply

Smilies
:D :) :( :o :shock: :? 8) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :!: :?: :idea: :arrow: :| :mrgreen:

BBCode is ON
[img] is ON
[flash] is OFF
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: How to call FDM from python?

Re: How to call FDM from python?

Post by sedsong » Sun Feb 11, 2024 5:22 am

Hi again,

It seems like I mostly need to set the user-agent through the command line. I tried "--user-agent" but that doesn't seem to work. Could you please tell the correct argument?

Re: How to call FDM from python?

Post by sedsong » Sun Feb 11, 2024 3:11 am

Hi, thanks for the response! Can you specify if there are other command line arguments that I can pass? I want to pass some extra parameters in the header/cookie without which the download is not authenticated. Directly downloading the link from the browser works well but not using the command line interface "fdm --url {url}".

Re: How to call FDM from python?

Post by Alex » Fri Dec 01, 2023 5:20 pm

Hello,
You can add a download using command line.
Unfortunately, there is no option to force the silent mode.
As a workaround, you can enable Preferences | Browser Integration | Start download without confirmation option.
Then, you can add a download using: fdm.exe "URL".

How to call FDM from python?

Post by pythomaniac » Sat Nov 25, 2023 3:22 pm

I want to download multiple files in a python script. I have the list of urls in the python script. How can I call FDM from python such that running that line adds the download in FDM in background?

Top