0

I want to make a python HTTP Server that runs on my machine, it will listen for me to send it urls and then it will take that url and download it to the computer.

Example:

  • PC1 has Downloader.py running with a simple interface, an input and a submit button.
  • I send "https://mega.nz/file/XXXXXXXX#XXXXXXXXXX_XXXXXXXXXXXXX-XXXXX-XXX" to PC1 from my phone.
  • Downloader.py receives the mega url and starts downloading the file in the background.

Ideally this would be non-blocking so if I send 2 links one after the other it wouldn't wait for the first to finish before downloading the second.

I already have the download functions but I'm not sure how to put it together with an HTTP Server.

subprocess? threading? multiprocessing?

Thanks.

1 Answer 1

2

If you familiar with python, it can be easily done with Django and Celery.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.