0

I wrote a little download manager in python, and now i want to "catch" downloads from Chrome Firefox and Explorer so they will download with it, instead of each built-in download manager of the browser itself.

I want to know when each of the browsers are starting a file download, so i can prevent the default behavior and use my own manager. All i need to start a download myself is the file url of course.

I know that in the past there were popular download managers such as "Get Right" that did exactly this. I want to do something similar.

Any ideas how would i go about doing this?

  • it may need to build browser extension in JavaScript. – furas Feb 24 '20 at 12:19
  • thank you can you share how i make it? – Shah Wajahat Feb 24 '20 at 20:14
  • I don't know how to catch downloads. Long time ago I made only Firefox extension which uses button on toolbar to run javaScript code to search links on page and use built-in method to download it. It doesn't use external programs for this. Create extension is complex, it needs account for developers on Firefox server to certificate it. [Getting started with web-ext](https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Getting_started_with_web-ext) and [examples](https://github.com/mdn/webextensions-examples) – furas Feb 24 '20 at 20:40
  • I found also how to use external script (python) in Firefox extension: [Native messaging](https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/Native_messaging) - but I never try to do it. – furas Feb 24 '20 at 20:48
  • Thank you So much for your response its very help full for me – Shah Wajahat Feb 25 '20 at 10:53
  • I added my firefox extension source code to GitHub: [firefox extension to download links](https://github.com/furas/firefox-extension-download-links) – furas Feb 25 '20 at 11:26
  • thanks a lot can i add to my desktop application? – Shah Wajahat Feb 26 '20 at 10:09

0 Answers0