How to use HTTrack on Mac Terminal

HTTrack has been very popular on Windows for cloning a website. But with macOS, many of you do not know how to install and use HTTrack on Mac. Yes, you have to install 2 operating systems in parallel to use HTTrack. But after reading this article, you will know How to use HTTrack on Mac extremely professional, “like a coder”.

Install HTTrack on Mac

You open the Terminal application on your Mac by pressing Command with Space and then looking for its name.

Paste the code below into the Terminal and press EnterThis step is to install brew for Macbook; with it, you can install HTTrack for Macbook.

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
How to use HTTrack on Mac Terminal -   Paste the code below into Terminal and press Enter
Paste the code below into Terminal and press Enter

After running brew installation, type these two command lines to add brew to PATH.

echo 'eval $(/opt/homebrew/bin/brew shellenv)' >> ~/.zprofile
eval $(/opt/homebrew/bin/brew shellenv)

Wait a moment; after Terminal runs the command, continue to paste the code below into Terminal and press Enter again to install HTTrack on Mac.

brew install httrack
How to use HTTrack on Mac Terminal -  Paste the command line install HTTrack on Macbook
Paste the command line install HTTrack on Mac

If you want to uninstall HTTrack on MacOS, open Terminal and paste this code in and Enter.

brew uninstall httrack

Using HTTrack on MacOS

How to use HTTrack on Mac to clone a website is also using Terminal. You type httrack into Terminal, and Enter is okay.

httrack
How to use HTTrack on Mac Terminal -  Type httrack into Terminal and Enter
Type httrack into Terminal and Enter

Pausing in the above step, create a folder to store the website you will clone anywhere you want. Then click the settings icon, select the line Copy “folder name” as path name as shown below.

How to use HTTrack on Mac Terminal - Click on the settings icon, select the line Copy "folder name" as pathname
Click the settings icon, select the line Copy “folder name” as pathname tên

Continuing with Terminal, you will fill in the following 3 lines:

  • Enter project name: enter your project name , then Enter.
  • Base path: paste the directory path that we copied just now.
  • Enter URLs: paste one or more websites you want to clone. Separate by comma or space.

Then you press Enter about 4 times continuously. Take a look at this picture for easy understanding.

Using HTTrack on MacOS
Using HTTrack on MacOS

When Terminal returns Done. Thanks for using HTTrack! You have cloned that website successfully.

In the above example, I cloned the homepage of ladipage.vn, now you go to the folder you just created just now, and you will see a subfolder with the project name you have set. Open inside, and select the folder with the domain name you cloned.

How to use HTTrack on Mac Terminal - Go to the folder you just created, there will be a subfolder with the project name
Go to the folder you just created, and there will be a subfolder with the project name.
How to use HTTrack on Mac Terminal - Select the folder with the domain you cloned
Select the folder with the domain you cloned

Usually, the website you cloned will be the index.html file, and in addition, the other files are just support or other subpages.

How to use HTTrack on Mac Terminal - Usually the website you cloned will be the index.html file
Usually, the website you cloned will be the index.html file

I try to open the file index.html and see the results, and it’s the same as the homepage of ladipage.vn. The other files I open are the same as the subpages of ladipage.vn. So that’s done.

How to use HTTrack on Mac Terminal -  Try opening the index.html file and see the result
Try opening the index.html file and see the result

Now you can edit the index.html file to your liking to use for your purposes.

Conclusion

I thought it was not easy, but no one expected it to be easy. Do it 2-3 times, and you will get used to it and if you forget how to use HTTrack on Mac, go back to Lucid Gen’s website to see it. Also, note that HTTrack clones landing pages very well because it is a static website, but for some dynamic websites like WordPress source code, it is “accidental”. If you found the article useful, please share and leave a comment below!

Related articles

Hieu Tran ngoc Minh

Hieu Tran ngoc Minh

I am currently working as a Data Analyst; before that, I worked in Digital Marketing. Blogging is a joy, helping me share my knowledge and experiences from life and work. You can donate to me here.

Leave a Comment

Feel free to leave your comment, and we will review and respond as soon as possible. Please use a real email address to ensure your comment is approved and to receive notifications when we reply. You can also add an avatar to your email.