summaryrefslogtreecommitdiff
path: root/README.md
blob: 7e4e89b9a3d6a72d453450c5671894c70cb6f7d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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)
```