diff options
author | haturatu <taro@eyes4you.org> | 2024-09-01 02:15:59 +0900 |
---|---|---|
committer | haturatu <taro@eyes4you.org> | 2024-09-01 02:15:59 +0900 |
commit | e0e3fa5f234e771ab5452a18a074cd83b52c8985 (patch) | |
tree | fee17fc09e686dc91a7f22053fcbd5bf4d266d2e /README.md | |
parent | f08411e3d4cec3be138eaef300fa419b02bd286d (diff) |
add readme
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 42 |
1 files changed, 42 insertions, 0 deletions
@@ -1 +1,43 @@ # paint-it-url +URLからページタイトルを取得、出力します。 + +## Usage +依存関係をインストール +``` +bundle install --path ~/.gem +``` + +## geturl.rb +入力ファイルは以下のような形式とします。 +`inputfile` +``` +https://github.com/haturatu/paint-it-url +https://soulminingrig.com/ +``` +そして実行します。 +``` +chmod +x geturl.rb +./geturl.rb +``` +出力 +``` +URL: https://soulminingrig.com/ +Title: Home - SOULMINIGRIG + +URL: https://github.com/haturatu/paint-it-url +Title: GitHub - haturatu/paint-it-url: URLからページタイトルを取得しMarkdown形式で出力する +``` + +## md.rb +出力されたファイルをMarkdown形式で出力する。 +``` +chmod +x md.rb +./md.rb +``` +出力 +``` +$ cat Result.md +[Home - SOULMINIGRIG](https://soulminingrig.com/) + +[GitHub - haturatu/paint-it-url: URLからページタイトルを取得しMarkdown形式で出力する](https://github.com/haturatu/paint-it-url) +``` |