Skip to the content.

クイックスタート(Dockerのみで実行可能)

このツールは、WordPress の sitemap.xml から全てのURLを再帰的に取得します。
Docker さえあれば、ローカル環境に Ruby をインストールする必要はありません。

使い方

https://example.com/sitemap.xml の部分を実際のURLに置き換えて実行してください。

git clone https://github.com/phrase-llc/sitemap2urls.git
cd sitemap2urls
docker build -t sitemap2urls .
docker run --rm sitemap2urls https://example.com/sitemap.xml > urls.txt

urls.txt にURLが出力されます。ファイル名を変更したい場合は、urls.txt の部分を変更してください。

その他、使えるオプションや Ruby での実行方法については
GitHub の README(日本語) をご覧ください。


Quick Start (Docker-only)

This tool recursively extracts all URLs from a WordPress sitemap.xml.
No Ruby installation is required — Docker is enough.

Usage Example

Replace https://example.com/sitemap.xml with the actual URL you want to fetch.

git clone https://github.com/phrase-llc/sitemap2urls.git
cd sitemap2urls
docker build -t sitemap2urls .
docker run --rm sitemap2urls https://example.com/sitemap.xml > urls.txt

urls.txt will contain the output. You can change the filename by modifying urls.txt.

For advanced options and local Ruby usage,
please refer to the README on GitHub.


Credits

Phrase Inc.

Maintained by Phrase Inc.
Vectors and icons by SVG Repo