ブログ - HTTrack Website Copier for macOS Home Brew
HTTrack Website Copier for macOS Home Brew
- ブロガー :
- ujpblog 2017/10/27 15:10
インターネット,Webの成長過渡期に流行ったツールで,オフラインブラウズするためのダウンローダというのがあった.一般家庭では,電話回線を使ってインターネット接続していて,よく使う人はテレホーダイというサービスに加入し,定額料金が定額になる深夜時間帯に,自動的にネットに接続してお気に入りのサイトを巡回し,コンテンツをダウンロードして日中にそれを読む.そんな使い方が多かったようだ.
今はスマホもあって常時接続になったし,Twitterを始めとするリアルタイム情報を利用するので,昨晩までのデータをダウンロードして読む,というような使い方をしなくなったと思うけれど,Webサイト全般的にダウンロードしたいというニーズはありつづけるのだろうとおもう.
その用途のツールが,このHTTrack Website Copierというツール.
HTTrack Website Copier
http://www.httrack.com
Windows,macOS,Linux,FreeBSDに対応しています.
mac版は,パッケージマネージャのHome Brewでインストールするようなので探してみました.
見つからない...そのまま手順通りにインストールコマンドを実行.
今回はOpenSSLのパッケージが入ってなかったもの自動追加されているので,それを有効化するために説明にある通りのコマンドを実行.
問題なく入った模様.
使ってみる.Googleの検索画面をダウンロードしてみる.
ダウンロードしたファイルは,ホームディレクトリのwebsites以下にあるので,ファイルを確認する.
今はスマホもあって常時接続になったし,Twitterを始めとするリアルタイム情報を利用するので,昨晩までのデータをダウンロードして読む,というような使い方をしなくなったと思うけれど,Webサイト全般的にダウンロードしたいというニーズはありつづけるのだろうとおもう.
その用途のツールが,このHTTrack Website Copierというツール.
HTTrack Website Copier
http://www.httrack.com
Windows,macOS,Linux,FreeBSDに対応しています.
mac版は,パッケージマネージャのHome Brewでインストールするようなので探してみました.
MBA13:~ ujpadmin$ brew search httrack🆑
==> Searching local taps...
httrack
==> Searching taps on GitHub...
==> Searching blacklisted, migrated and deleted formulae...
MBA13:~ ujpadmin $
MBA13:~ ujpadmin $ brew install httrack🆑
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 1 tap (homebrew/core).
==> Updated Formulae
sbt
==> Installing dependencies for httrack: openssl
==> Installing httrack dependency: openssl
==> Downloading https://homebrew.bintray.com/bottles/openssl-1.0.2l.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring openssl-1.0.2l.sierra.bottle.tar.gz
==> Caveats
A CA file has been bootstrapped using certificates from the SystemRoots
keychain. To add additional certificates (e.g. the certificates added in
the System keychain), place .pem files in
/usr/local/etc/openssl/certs
and run
/usr/local/opt/openssl/bin/c_rehash
This formula is keg-only, which means it was not symlinked into /usr/local,
because Apple has deprecated use of OpenSSL in favor of its own TLS and crypto libraries.
If you need to have this software first in your PATH run:
echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.bash_profile
For compilers to find this software you may need to set:
LDFLAGS: -L/usr/local/opt/openssl/lib
CPPFLAGS: -I/usr/local/opt/openssl/include
For pkg-config to find this software you may need to set:
PKG_CONFIG_PATH: /usr/local/opt/openssl/lib/pkgconfig
==> Summary
🍺 /usr/local/Cellar/openssl/1.0.2l: 1,709 files, 12.2MB
==> Installing httrack
==> Downloading https://homebrew.bintray.com/bottles/httrack-3.49.2.sierra.bottle.tar.gz
######################################################################## 100.0%
==> Pouring httrack-3.49.2.sierra.bottle.tar.gz
🍺 /usr/local/Cellar/httrack/3.49.2: 235 files, 4MB
MBA13:~ ujpadmin$
MBA13:~ ujpadmin$ /usr/local/opt/openssl/bin/c_rehash🆑
Doing /usr/local/etc/openssl/certs
MBA13:~ ujpadmin$ echo 'export PATH="/usr/local/opt/openssl/bin:$PATH"' >> ~/.bash_profile🆑
MBA13:~ ujpadmin$ source .bashrc🆑
MBA13:~ ujpadmin$
MBA13:~ ujpadmin $ /usr/local/opt/openssl/bin/openssl🆑
OpenSSL> version🆑
OpenSSL 1.0.2l 25 May 2017
OpenSSL> quit🆑
MBA13:~ ujpadmin $
使ってみる.Googleの検索画面をダウンロードしてみる.
MBA13:~ ujpadmin $ httrack🆑
Welcome to HTTrack Website Copier (Offline Browser) 3.49-2
Copyright (C) 1998-2017 Xavier Roche and other contributors
To see the option list, enter a blank line or try httrack --help
Enter project name :google🆑
Base path (return=/Users/nobuaki/websites/) :
Enter URLs (separated by commas or blank spaces) :www.google.com🆑
Action:
(enter) 1 Mirror Web Site(s)
2 Mirror Web Site(s) with Wizard
3 Just Get Files Indicated
4 Mirror ALL links in URLs (Multiple Mirror)
5 Test Links In URLs (Bookmark Test)
0 Quit
: 1🆑
Proxy (return=none) :
You can define wildcards, like: -*.gif +www.*.com/*.zip -*img_*.zip
Wildcards (return=none) :🆑
You can define additional options, such as recurse level (-r<number>), separated by blank spaces
To see the option list, type help
Additional options (return=none) :🆑
---> Wizard command line: httrack www.google.com -O "/Users/nobuaki/websites/google" -%v
Ready to launch the mirror? (Y/n) :Y🆑
Mirror launched on Sat, 28 Oct 2017 14:09:25 by HTTrack Website Copier/3.49-2 [XR&CO'2014]
mirroring www.google.com with the wizard help..
Done.
Thanks for using HTTrack!
*
MBA13:~ ujpadmin$
MBA13:~ ujpadmin $ cd ~/.🆑
MBA13:~ ujpadmin $ cd websites/🆑
MBA13:websites ujpadmin $ ls -la🆑
total 0
drwxr-xr-x 3 ujpadmin staff 102 10 28 14:09 .
drwxr-xr-x+ 57 ujpadmin staff 1938 10 28 14:09 ..
drwxr-xr-x 8 ujpadmin staff 272 10 28 14:09 google
MBA13:websites ujpadmin $ ls -la google🆑
total 24
drwxr-xr-x 8 ujpadmin staff 272 10 28 14:09 .
drwxr-xr-x 3 ujpadmin staff 102 10 28 14:09 ..
-rw-r--r-- 1 ujpadmin staff 4243 10 28 14:09 backblue.gif
-rw-r--r-- 1 ujpadmin staff 828 10 28 14:09 fade.gif
drwx------ 6 ujpadmin staff 204 10 28 14:09 hts-cache
-rw-r--r-- 1 ujpadmin staff 722 10 28 14:09 hts-log.txt
-rw-r--r-- 1 ujpadmin staff 5213 10 28 14:09 index.html
drwxr-xr-x 3 ujpadmin staff 102 10 28 14:09 www.google.com
MBA13:websites ujpadmin $