How to link httrack with python 3 executable

There is a large copy of the site that I would like to link in my executable created using python 3 and py2exe.
On the official HTTrack website in the FAQ section, they say that this is an available version of the DLL / library ..
But I don’t know where to start, or even how to use the DLL as soon as it is associated with the executable.
So, how can I associate httrack with the python 3 executable and use its functions to start copying websites?
Edit:
I found httrack-py 0.6.1 , but it only supports python 2 and uses the old version of httrack, so I cannot use this for my executable.

+5
source share
1 answer

As I can see, you have 2 options:

  • You can try converting httrack-py to python 3 following these instructions, but it is usually not recommended to work with an obsolete and unused third-party library.

  • Since official HTTrack provides you with a DLL, you can use the libraries directly from python 3 code. Question about the stack How can I use a DLL file from Python? gives an excellent answer on how to do this.

    Py2exe simply creates a window installer that will take care of the details of installing the python interpreter and your python code in the target system so that the end user does not need anything but one .exe. This means that you must include the Third-party DLL in the configuration - I would suggest that the third-party DLL to go into the "data_files" (did not check it myself, though).

+1
source

Source: https://habr.com/ru/post/1244510/


All Articles