Skip to content

Instantly share code, notes, and snippets.

@faithandbrave
Last active April 7, 2020 07:19
Show Gist options
  • Select an option

  • Save faithandbrave/6cc5829db51f7abd57e2bcc226efac22 to your computer and use it in GitHub Desktop.

Select an option

Save faithandbrave/6cc5829db51f7abd57e2bcc226efac22 to your computer and use it in GitHub Desktop.
@faithandbrave

faithandbrave commented Apr 2, 2020 •

Copy link
Copy Markdown
Author

ラムダ式に引っかかる。 -> fixed

@faithandbrave

faithandbrave commented Apr 2, 2020 •

Copy link
Copy Markdown
Author

@faithandbrave

faithandbrave commented Apr 2, 2020 •

Copy link
Copy Markdown
Author

めちゃくちゃ遅い。

URLチェックをなくすと、1.3秒でおわる。
URLチェックを入れるとおそらく数時間かかる。

@faithandbrave

Copy link
Copy Markdown
Author
reference/tuple/make_from_tuple.md href `/reference/utility/forward.md` not found.
reference/atomic/atomic_flag_wait_explicit.md href notify_one.md not found.
reference/atomic/atomic_ref.md href atomic_ref[store.md not found.
reference/concepts/semiregular.md href /reference/concepts/default_constructible.md not found.
reference/string/basic_string/insert.md href /reference/string_view/basic_string_view/append.md not found.
reference/string/basic_string/assign.md href /reference/string_view/basic_string_view/append.md not found.
reference/string/basic_string/compare.md href /reference/string_view/basic_string_view/append.md not found.
reference/string/basic_string/replace.md href /reference/string_view/basic_string_view/append.md not found.
reference/string/basic_string/append.md href /reference/string_view/basic_string_view/append.md not found.
reference/functional/boyer_moore_searcher.md href /reference/concepts/default_constructible.md not found.
reference/functional/boyer_moore_horspool_searcher.md href /reference/concepts/default_constructible.md not found.

@faithandbrave

faithandbrave commented Apr 2, 2020 •

Copy link
Copy Markdown
Author

日本語が含まれているURLを処理できない。 -> fixed

@faithandbrave

faithandbrave commented Apr 2, 2020 •

Copy link
Copy Markdown
Author

URLに丸カッコが含まれているとURL内のカッコ閉じでパースされてしまう。正規表現でどうにかなるのかな… -> fixed (workaround)

[CRTP:Curiously Recurring Template Pattern](https://ja.wikibooks.org/wiki/More_C%2B%2B_Idioms/奇妙に再帰したテンプレートパターン(Curiously_Recurring_Template_Pattern))

https://ja.wikipedia.org/wiki/ノルム_(体論)

@faithandbrave

faithandbrave commented Apr 2, 2020 •

Copy link
Copy Markdown
Author

リダイレクトのはずが404が返ってきてしまう。 -> fixed requests.getとres.urlのチェックでいけた

@faithandbrave

Copy link
Copy Markdown
Author

URLチェックできた気がするので、落ち着いた場所に行ったら実行してみる。数時間かかるので。

@faithandbrave

Copy link
Copy Markdown
Author

リダイレクト先URLのチェックをつけた

@faithandbrave

faithandbrave commented Apr 6, 2020 •

Copy link
Copy Markdown
Author

スクリプトの実行方法:

サイト内リンクのチェック (1秒くらいでおわる軽量タスク):

pip3 install requests
python3 link_check.py --check-inner-link

サイト外リンクのチェック (1時間くらいかかる重いタスクなので、1日1回程度の実行が望ましい):

pip3 install requests
python3 link_check.py --check-outer-link

(外部ライブラリはrequestsしか使っていないので、requirements.txtを作るほどでもないかなと)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment