How to get download progress info from I.D.Manager to python? - python

im working a project lately to get download progress info remotely when im away.
i googled a bit but i couldnt find any useful info. on this issue
im using Internet Download Manager.
please help :/ i appreciate any suggestions
im thinking about making software with python but Also C is Ok. if there is a solution

I dont know exactly how to do it but you can get IDM download progress( such as Transfer rate, TimeLeft... ) by reading the values of the ListView of Internet Download Manager windows (they call it "hook"? )

i just found idm has log file for every download in its temporary folder im trying to parse information from log file i dunno if it is possible sync.ly get info..but i'll try

Related

Pulling stills from markers with scripting in Davinci Resolve

I've been using Resolve as a way to find images to pull from videos I've shot for use on my website and elsewhere. My problem is Resolve doesn't have a good way of categorizing/looking at stills, I'd like to be able to pull the stills and then look at them in something like Adobe Bridge where I can rate them and organize them.
Right now I just have a timeline with about 400 markers on it, meaning I have to go pull 400 stills. Is there an easy way to use the scripting in Resolve to have the computer pull those stills and dump them to a folder on my desktop?
I tried to run the script from here: https://forum.blackmagicdesign.com/viewtopic.php?f=21&t=119036 but I couldn't get it to run, always getting a syntax error in IDLE or directly in Resolves console. I'd prefer to have the images in a folder by themselves as well, I don't need most of the other information that script would give me.
Thanks for helping me out!

How to get the url of a downloaded file

I have done a lot of research but I can find a way to get the url of a file already downloaded..
I want to get the urls to make a program to sort my files by them.
If anyone have an idea to get that or to make that in an other way im glade to hear it !
Sorry for my bad English !
I doubt that it is in general possible, because data like these is not stored in file's metadata. If your script makes the download, you can save the link in code and then use it to sort your files, but if files are downloaded by the user it is impossible.

How to provide voice synthesis on my website?

I have a python program which can take as an input a text file and some parameters, and give as output a file mp3. I would like to let people try the system on my website, for small sentences.
I thought I could put the python program on a cloud server and create a API with Flask-Restful, and then call this API with my website which is made with Django Framework. I can't afford a GPU server, so it will take a few seconds/minutes to generate the mp3 file. I can't make a POST request that long, can I?
The thing is, I don't know if this is an appropriate method, is there an easier way to do this ? I just want to install my tts system on a web server, and be able to call it from my website. I didn't found any documentation or tutorial that helped me...
Tell me if my problem is not clear enough,
Thank you for your help

Python get data from custom tab in file's properties

I'm strungling with what's seems to be custom metadata tab.
I spend 16 hour trying to write a snippet to read data from this tab 'Phenom-World':
I tried different approach without any success :
Exif
Win32com
os.stat
My attempts are returning information relative to File>Properties>Details (size, résolution, date, etc) but nothing from the tab named 'Phenom-World'.
Any help please ? I'm kind of despair now.
Thanks for your help !
Here's the file, it's a .jpeg
I'm using python 3.8, windows 10
EDIT #1
It seems that the phenom-world tab can only be seen by computers where a software from this same brand is installed.
I send the file 6.jpeg to another computer able to read it, it return exactly the same datas, so those metadata are embeded in the file even through if they are 'hidden' for computer without the phenom software.

django/python: How to convert pptx/docx formats to PDF using python?

First of all, I agree that this might sound like a question which has already been asked many times in the past. However I couldn't find any answer that was relevant to me in the similar questions so I'll try to be more specific.
I would need to transform PPTX/DOCX files into PDF using Python but I don't have any experience in file format conversion. I have been looking in many places/forums/websites, read a lot of documentation and came across some useful libraries (python-pptx and pyPdf mainly), but I still don't know where to start.
When looking on the Internet, I can see many websites that offer file format conversions as a paying service, even with advanced API's: submit a file via POST and get the transformed PDF file in return. This could work for me, but I am really interested in writing myself the code that does the conversion work from OOXML to PDF.
How would you start doing this? Or is it just impossible on my own?
Thanks for your help!
After some research and with the help of python-pptx's creator, I was able to write to the PowerPoint COM interface using a Virtual Machine.
In case someone reads this thread, this is how I managed to get this done:
- Setup a VM with Microsoft Windows/Office installed on it ;
- Install Python, Django and win32com libraries on the VM.
The files are sent locally from the original Django project to the virtual machine (which are on the same network) through a simple POST request. The file is converted on the VM using win32com.client (which is just a simple call to the win32com.client library) and then sent back as a response to the original Django view, which in turn processes the response.
Note: it took me some time to realize I needed to use the #csrf_exempt decorator for this setup to work.

Categories