上記でも JSON 形式で返ってきますが、chunk や tok 要素の中身が 1 つしかない時にリスト形式になっていない、feature がカンマ区切りの文字列(リスト形式でない)になっているなど少し不便です。
下記の様に処理を追加するとフォーマットを揃えることができます。
import CaboCha
import xmltodict
import json
c = CaboCha.Parser()
tree = c.parse('今日は天気がとても良いですね。')
xmltree = tree.toString(CaboCha.FORMAT_XML)
jsonobj = xmltodict.parse(xmltree, attr_prefix='', cdata_key='surface', dict_constructor=dict)
# 追記分 ↓
if jsonobj['sentence']: # sentence が存在する際に処理を行う
if type(jsonobj['sentence']['chunk']) is not list: # chunk を必ずリスト形式にする
jsonobj['sentence']['chunk'] = [jsonobj['sentence']['chunk']]
for chunk in jsonobj['sentence']['chunk']:
if type(chunk['tok']) is not list: # tok を必ずリスト形式にする
chunk['tok'] = [chunk['tok']]
for tok in chunk['tok']:
feature_list = tok['feature'].split(',') # feature をリスト形式に変換
tok['feature'] = feature_list
# 追記分 ↑
print(json.dumps(jsonobj, indent=2, ensure_ascii=False))
% cd Users/ユーザー名/Downloads
% ls
cabocha-0.69.tar.bz2
ファイルを解凍して、configure、make、make install を行います。
% tar xfv cabocha-0.69.tar.bz2
% cd cabocha-0.69
% ./configure --prefix=/usr/local/cabocha/0_69 --with-charset=UTF8 --with-posset=IPA
% make
% make install
実行時に「-d /usr/local/lib/mecab/dic/mecab-ipadic-neologd」を渡すのですが、下記コードの様に「CaboCha.Parser('-d /usr/local/lib/mecab/dic/mecab-ipadic-neologd')」としてあげれば OK です。
% sudo python3 setup.py install
running install
running build
running build_py
creating build
creating build/lib.macosx-10.9-x86_64-3.8
copying CaboCha.py -> build/lib.macosx-10.9-x86_64-3.8
running build_ext
building '_CaboCha' extension
creating build/temp.macosx-10.9-x86_64-3.8
gcc -Wno-unused-result -Wsign-compare -Wunreachable-code -fno-common -dynamic -DNDEBUG -g -fwrapv -O3 -Wall -arch x86_64 -g -I/usr/local/Cellar/cabocha/0.69/include -I/Users/ユーザー名/仮想環境ディレクトリ/include -I/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8 -c CaboCha_wrap.cxx -o build/temp.macosx-10.9-x86_64-3.8/CaboCha_wrap.o
In file included from CaboCha_wrap.cxx:154:
In file included from /Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/Python.h:85:
In file included from /Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/pytime.h:6:
In file included from /Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/object.h:746:
/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/cpython/object.h:177:16: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
typedef struct _typeobject {
^
CaboCha_wrap.cxx:1947:23: note: in implicit copy assignment operator for '_typeobject' first required here
swigpyobject_type = tmp;
^
/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
^
/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
In file included from CaboCha_wrap.cxx:154:
In file included from /Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/Python.h:85:
In file included from /Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/pytime.h:6:
In file included from /Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/object.h:746:
/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/cpython/object.h:177:16: warning: 'tp_print' is deprecated [-Wdeprecated-declarations]
typedef struct _typeobject {
^
/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/cpython/object.h:260:5: note: 'tp_print' has been explicitly marked deprecated here
Py_DEPRECATED(3.8) int (*tp_print)(PyObject *, FILE *, int);
^
/Library/Frameworks/Python.framework/Versions/3.8/include/python3.8/pyport.h:515:54: note: expanded from macro 'Py_DEPRECATED'
#define Py_DEPRECATED(VERSION_UNUSED) __attribute__((__deprecated__))
^
CaboCha_wrap.cxx:3669:18: warning: exception of type 'const char *' will be caught by earlier handler [-Wexceptions]
catch (const char *e) {
^
CaboCha_wrap.cxx:3666:12: note: for type 'char *'
catch (char *e) {
^
CaboCha_wrap.cxx:3871:18: warning: exception of type 'const char *' will be caught by earlier handler [-Wexceptions]
catch (const char *e) {
^
CaboCha_wrap.cxx:3868:12: note: for type 'char *'
catch (char *e) {
^
CaboCha_wrap.cxx:3919:18: warning: exception of type 'const char *' will be caught by earlier handler [-Wexceptions]
catch (const char *e) {
^
CaboCha_wrap.cxx:3916:12: note: for type 'char *'
catch (char *e) {
^
CaboCha_wrap.cxx:3953:18: warning: exception of type 'const char *' will be caught by earlier handler [-Wexceptions]
catch (const char *e) {
^
CaboCha_wrap.cxx:3950:12: note: for type 'char *'
catch (char *e) {
^
CaboCha_wrap.cxx:3985:18: warning: exception of type 'const char *' will be caught by earlier handler [-Wexceptions]
catch (const char *e) {
^
CaboCha_wrap.cxx:3982:12: note: for type 'char *'
catch (char *e) {
^
CaboCha_wrap.cxx:4026:18: warning: exception of type 'const char *' will be caught by earlier handler [-Wexceptions]
catch (const char *e) {
^
CaboCha_wrap.cxx:4023:12: note: for type 'char *'
catch (char *e) {
^
CaboCha_wrap.cxx:4067:18: warning: exception of type 'const char *' will be caught by earlier handler [-Wexceptions]
catch (const char *e) {
^
CaboCha_wrap.cxx:4064:12: note: for type 'char *'
catch (char *e) {
^
CaboCha_wrap.cxx:4118:18: warning: exception of type 'const char *' will be caught by earlier handler [-Wexceptions]
catch (const char *e) {
^
CaboCha_wrap.cxx:4115:12: note: for type 'char *'
catch (char *e) {
^
CaboCha_wrap.cxx:4152:18: warning: exception of type 'const char *' will be caught by earlier handler [-Wexceptions]
catch (const char *e) {
^
CaboCha_wrap.cxx:4149:12: note: for type 'char *'
catch (char *e) {
^
CaboCha_wrap.cxx:4183:18: warning: exception of type 'const char *' will be caught by earlier handler [-Wexceptions]
catch (const char *e) {
^
CaboCha_wrap.cxx:4180:12: note: for type 'char *'
catch (char *e) {
^
CaboCha_wrap.cxx:4214:18: warning: exception of type 'const char *' will be caught by earlier handler [-Wexceptions]
catch (const char *e) {
^
CaboCha_wrap.cxx:4211:12: note: for type 'char *'
catch (char *e) {
^
CaboCha_wrap.cxx:4246:18: warning: exception of type 'const char *' will be caught by earlier handler [-Wexceptions]
catch (const char *e) {
^
CaboCha_wrap.cxx:4243:12: note: for type 'char *'
catch (char *e) {
^
CaboCha_wrap.cxx:4278:18: warning: exception of type 'const char *' will be caught by earlier handler [-Wexceptions]
catch (const char *e) {
^
CaboCha_wrap.cxx:4275:12: note: for type 'char *'
catch (char *e) {
^
CaboCha_wrap.cxx:4310:18: warning: exception of type 'const char *' will be caught by earlier handler [-Wexceptions]
catch (const char *e) {
^
CaboCha_wrap.cxx:4307:12: note: for type 'char *'
catch (char *e) {
^
CaboCha_wrap.cxx:4351:18: warning: exception of type 'const char *' will be caught by earlier handler [-Wexceptions]
catch (const char *e) {
^
CaboCha_wrap.cxx:4348:12: note: for type 'char *'
catch (char *e) {
^
CaboCha_wrap.cxx:4383:18: warning: exception of type 'const char *' will be caught by earlier handler [-Wexceptions]
catch (const char *e) {
^
CaboCha_wrap.cxx:4380:12: note: for type 'char *'
catch (char *e) {
^
CaboCha_wrap.cxx:4423:18: warning: exception of type 'const char *' will be caught by earlier handler [-Wexceptions]
catch (const char *e) {
^
CaboCha_wrap.cxx:4420:12: note: for type 'char *'
catch (char *e) {
^
CaboCha_wrap.cxx:4455:18: warning: exception of type 'const char *' will be caught by earlier handler [-Wexceptions]
catch (const char *e) {
^
CaboCha_wrap.cxx:4452:12: note: for type 'char *'
catch (char *e) {
^
CaboCha_wrap.cxx:4495:18: warning: exception of type 'const char *' will be caught by earlier handler [-Wexceptions]
catch (const char *e) {
^
CaboCha_wrap.cxx:4492:12: note: for type 'char *'
catch (char *e) {
^
CaboCha_wrap.cxx:4527:18: warning: exception of type 'const char *' will be caught by earlier handler [-Wexceptions]
catch (const char *e) {
^
CaboCha_wrap.cxx:4524:12: note: for type 'char *'
catch (char *e) {
^
CaboCha_wrap.cxx:4567:18: warning: exception of type 'const char *' will be caught by earlier handler [-Wexceptions]
catch (const char *e) {
^
CaboCha_wrap.cxx:4564:12: note: for type 'char *'
catch (char *e) {
^
CaboCha_wrap.cxx:4599:18: warning: exception of type 'const char *' will be caught by earlier handler [-Wexceptions]
catch (const char *e) {
^
CaboCha_wrap.cxx:4596:12: note: for type 'char *'
catch (char *e) {
^
CaboCha_wrap.cxx:4622:18: warning: exception of type 'const char *' will be caught by earlier handler [-Wexceptions]
catch (const char *e) {
^
CaboCha_wrap.cxx:4619:12: note: for type 'char *'
catch (char *e) {
^
CaboCha_wrap.cxx:4653:18: warning: exception of type 'const char *' will be caught by earlier handler [-Wexceptions]
catch (const char *e) {
^
CaboCha_wrap.cxx:4650:12: note: for type 'char *'
catch (char *e) {
^
CaboCha_wrap.cxx:4702:18: warning: exception of type 'const char *' will be caught by earlier handler [-Wexceptions]
catch (const char *e) {
^
CaboCha_wrap.cxx:4699:12: note: for type 'char *'
catch (char *e) {
^
CaboCha_wrap.cxx:4746:18: warning: exception of type 'const char *' will be caught by earlier handler [-Wexceptions]
catch (const char *e) {
^
CaboCha_wrap.cxx:4743:12: note: for type 'char *'
catch (char *e) {
^
CaboCha_wrap.cxx:4789:18: warning: exception of type 'const char *' will be caught by earlier handler [-Wexceptions]
catch (const char *e) {
^
CaboCha_wrap.cxx:4786:12: note: for type 'char *'
catch (char *e) {
^
CaboCha_wrap.cxx:4868:18: warning: exception of type 'const char *' will be caught by earlier handler [-Wexceptions]
catch (const char *e) {
^
CaboCha_wrap.cxx:4865:12: note: for type 'char *'
catch (char *e) {
^
CaboCha_wrap.cxx:4891:18: warning: exception of type 'const char *' will be caught by earlier handler [-Wexceptions]
catch (const char *e) {
^
CaboCha_wrap.cxx:4888:12: note: for type 'char *'
catch (char *e) {
^
CaboCha_wrap.cxx:4922:18: warning: exception of type 'const char *' will be caught by earlier handler [-Wexceptions]
catch (const char *e) {
^
CaboCha_wrap.cxx:4919:12: note: for type 'char *'
catch (char *e) {
^
CaboCha_wrap.cxx:4955:18: warning: exception of type 'const char *' will be caught by earlier handler [-Wexceptions]
catch (const char *e) {
^
CaboCha_wrap.cxx:4952:12: note: for type 'char *'
catch (char *e) {
^
CaboCha_wrap.cxx:4980:18: warning: exception of type 'const char *' will be caught by earlier handler [-Wexceptions]
catch (const char *e) {
^
CaboCha_wrap.cxx:4977:12: note: for type 'char *'
catch (char *e) {
^
CaboCha_wrap.cxx:5041:18: warning: exception of type 'const char *' will be caught by earlier handler [-Wexceptions]
catch (const char *e) {
^
CaboCha_wrap.cxx:5038:12: note: for type 'char *'
catch (char *e) {
^
CaboCha_wrap.cxx:5130:18: warning: exception of type 'const char *' will be caught by earlier handler [-Wexceptions]
catch (const char *e) {
^
CaboCha_wrap.cxx:5127:12: note: for type 'char *'
catch (char *e) {
^
CaboCha_wrap.cxx:5225:18: warning: exception of type 'const char *' will be caught by earlier handler [-Wexceptions]
catch (const char *e) {
^
CaboCha_wrap.cxx:5222:12: note: for type 'char *'
catch (char *e) {
^
CaboCha_wrap.cxx:5320:18: warning: exception of type 'const char *' will be caught by earlier handler [-Wexceptions]
catch (const char *e) {
^
CaboCha_wrap.cxx:5317:12: note: for type 'char *'
catch (char *e) {
^
38 warnings generated.
warning: no library file corresponding to '-L/usr/local/Cellar/mecab/0.996/lib' found (skipping)
g++ -bundle -undefined dynamic_lookup -arch x86_64 -g build/temp.macosx-10.9-x86_64-3.8/CaboCha_wrap.o -L/usr/local/Cellar/cabocha/0.69/lib -lcabocha -lcrfpp -lmecab -liconv -lmecab -lstdc++ -o build/lib.macosx-10.9-x86_64-3.8/_CaboCha.cpython-38-darwin.so
ld: warning: dylib (/usr/local/Cellar/cabocha/0.69/lib/libcabocha.dylib) was built for newer macOS version (11.0) than being linked (10.9)
ld: warning: dylib (/usr/local/lib/libcrfpp.dylib) was built for newer macOS version (11.0) than being linked (10.9)
ld: warning: dylib (/usr/local/lib/libmecab.dylib) was built for newer macOS version (11.0) than being linked (10.9)
running install_lib
copying build/lib.macosx-10.9-x86_64-3.8/_CaboCha.cpython-38-darwin.so -> /Users/ユーザー名/仮想環境ディレクトリ/lib/python3.8/site-packages
copying build/lib.macosx-10.9-x86_64-3.8/CaboCha.py -> /Users/ユーザー名/仮想環境ディレクトリ/lib/python3.8/site-packages
byte-compiling /Users/ユーザー名/仮想環境ディレクトリ/lib/python3.8/site-packages/CaboCha.py to CaboCha.cpython-38.pyc
running install_egg_info
Writing /Users/ユーザー名/仮想環境ディレクトリ/lib/python3.8/site-packages/cabocha_python-0.69-py3.8.egg-info
%
% tar xfv cabocha-0.69.tar.bz2
x cabocha-0.69/
x cabocha-0.69/cabocha-config.in
x cabocha-0.69/compile
x cabocha-0.69/swig/
x cabocha-0.69/swig/version.h.in
x cabocha-0.69/swig/Makefile
x cabocha-0.69/swig/version.h
x cabocha-0.69/swig/CaboCha.i
x cabocha-0.69/missing
x cabocha-0.69/java/
x cabocha-0.69/java/test.java
x cabocha-0.69/java/Makefile
x cabocha-0.69/java/org/
x cabocha-0.69/java/org/chasen/
x cabocha-0.69/java/org/chasen/cabocha/
x cabocha-0.69/java/org/chasen/cabocha/FormatType.java
x cabocha-0.69/java/org/chasen/cabocha/OutputLayerType.java
x cabocha-0.69/java/org/chasen/cabocha/Token.java
x cabocha-0.69/java/org/chasen/cabocha/CaboChaConstants.java
x cabocha-0.69/java/org/chasen/cabocha/ParserType.java
x cabocha-0.69/java/org/chasen/cabocha/ParsingAlgorithm.java
x cabocha-0.69/java/org/chasen/cabocha/Chunk.java
x cabocha-0.69/java/org/chasen/cabocha/InputLayerType.java
x cabocha-0.69/java/org/chasen/cabocha/CaboCha.java
x cabocha-0.69/java/org/chasen/cabocha/CaboChaJNI.java
x cabocha-0.69/java/org/chasen/cabocha/PossetType.java
x cabocha-0.69/java/org/chasen/cabocha/Tree.java
x cabocha-0.69/java/org/chasen/cabocha/CharsetType.java
x cabocha-0.69/java/org/chasen/cabocha/Parser.java
x cabocha-0.69/java/CaboCha_wrap.cxx
x cabocha-0.69/ltmain.sh
x cabocha-0.69/config.guess
x cabocha-0.69/man/
x cabocha-0.69/man/Makefile.in
x cabocha-0.69/man/cabocha.1
x cabocha-0.69/man/Makefile.am
x cabocha-0.69/BSD
x cabocha-0.69/python/
x cabocha-0.69/python/test.py
x cabocha-0.69/python/CaboCha.py
x cabocha-0.69/python/CaboCha_wrap.cxx
x cabocha-0.69/python/setup.py
x cabocha-0.69/AUTHORS
x cabocha-0.69/ruby/
x cabocha-0.69/ruby/CaboCha_wrap.cpp
x cabocha-0.69/ruby/extconf.rb
x cabocha-0.69/ruby/test.rb
x cabocha-0.69/Makefile.in
x cabocha-0.69/NEWS
x cabocha-0.69/install-sh
x cabocha-0.69/cabocha.iss.in
x cabocha-0.69/ChangeLog
x cabocha-0.69/configure
x cabocha-0.69/src/
x cabocha-0.69/src/string_buffer.cpp
x cabocha-0.69/src/tree_allocator.cpp
x cabocha-0.69/src/dep.h
x cabocha-0.69/src/dep_learner.cpp
x cabocha-0.69/src/tree_allocator.h
x cabocha-0.69/src/svm.h
x cabocha-0.69/src/svm.cpp
x cabocha-0.69/src/ucstable.h
x cabocha-0.69/src/utils.h
x cabocha-0.69/src/selector.cpp
x cabocha-0.69/src/chunk_learner.cpp
x cabocha-0.69/src/string_buffer.h
x cabocha-0.69/src/ucs.cpp
x cabocha-0.69/src/ne.cpp
x cabocha-0.69/src/eval.cpp
x cabocha-0.69/src/cabocha.cpp
x cabocha-0.69/src/Makefile.in
x cabocha-0.69/src/scoped_ptr.h
x cabocha-0.69/src/chunker.h
x cabocha-0.69/src/normalizer.rule
x cabocha-0.69/src/common.h
x cabocha-0.69/src/normalizer_rule.sh
x cabocha-0.69/src/darts.h
x cabocha-0.69/src/learner.cpp
x cabocha-0.69/src/cabocha.h
x cabocha-0.69/src/morph.h
x cabocha-0.69/src/svm_learn.cpp
x cabocha-0.69/src/Makefile.msvc.in
x cabocha-0.69/src/timer.h
x cabocha-0.69/src/chunker.cpp
x cabocha-0.69/src/utils.cpp
x cabocha-0.69/src/param.h
x cabocha-0.69/src/winmain.h
x cabocha-0.69/src/normalizer.h
x cabocha-0.69/src/param.cpp
x cabocha-0.69/src/parser.cpp
x cabocha-0.69/src/ne.h
x cabocha-0.69/src/normalizer_rule.h
x cabocha-0.69/src/svm_learn.h
x cabocha-0.69/src/ucs.h
x cabocha-0.69/src/cabocha-model-index.cpp
x cabocha-0.69/src/mmap.h
x cabocha-0.69/src/analyzer.h
x cabocha-0.69/src/make.bat
x cabocha-0.69/src/tree.cpp
x cabocha-0.69/src/char_category.h
x cabocha-0.69/src/Makefile.am
x cabocha-0.69/src/dep.cpp
x cabocha-0.69/src/morph.cpp
x cabocha-0.69/src/selector_pat.h
x cabocha-0.69/src/cabocha-system-eval.cpp
x cabocha-0.69/src/cabocha-learn.cpp
x cabocha-0.69/src/stream_wrapper.h
x cabocha-0.69/src/selector.h
x cabocha-0.69/src/libcabocha.cpp
x cabocha-0.69/src/normalizer.cpp
x cabocha-0.69/src/freelist.h
x cabocha-0.69/perl/
x cabocha-0.69/perl/test.pl
x cabocha-0.69/perl/Makefile.PL
x cabocha-0.69/perl/CaboCha_wrap.o
x cabocha-0.69/perl/CaboCha.bs
x cabocha-0.69/perl/blib/
x cabocha-0.69/perl/blib/bin/
x cabocha-0.69/perl/blib/bin/.exists
x cabocha-0.69/perl/blib/arch/
x cabocha-0.69/perl/blib/arch/.exists
x cabocha-0.69/perl/blib/arch/auto/
x cabocha-0.69/perl/blib/arch/auto/CaboCha/
x cabocha-0.69/perl/blib/arch/auto/CaboCha/.exists
x cabocha-0.69/perl/blib/arch/auto/CaboCha/CaboCha.so
x cabocha-0.69/perl/blib/arch/auto/CaboCha/CaboCha.bs
x cabocha-0.69/perl/blib/lib/
x cabocha-0.69/perl/blib/lib/.exists
x cabocha-0.69/perl/blib/lib/auto/
x cabocha-0.69/perl/blib/lib/auto/CaboCha/
x cabocha-0.69/perl/blib/lib/auto/CaboCha/.exists
x cabocha-0.69/perl/blib/lib/CaboCha.pm
x cabocha-0.69/perl/blib/man1/
x cabocha-0.69/perl/blib/man1/.exists
x cabocha-0.69/perl/blib/script/
x cabocha-0.69/perl/blib/script/.exists
x cabocha-0.69/perl/blib/man3/
x cabocha-0.69/perl/blib/man3/.exists
x cabocha-0.69/perl/CaboCha_wrap.cxx
x cabocha-0.69/perl/pm_to_blib
x cabocha-0.69/perl/CaboCha.pm
x cabocha-0.69/perl/MYMETA.yml
x cabocha-0.69/config.rpath
x cabocha-0.69/TODO
x cabocha-0.69/configure.in
x cabocha-0.69/config.sub
x cabocha-0.69/LGPL
x cabocha-0.69/tools/
x cabocha-0.69/tools/kc2cabocha.pl
x cabocha-0.69/tools/irex2cabocha.pl
x cabocha-0.69/tools/chasen2mecab.pl
x cabocha-0.69/tools/kc2juman.pl
x cabocha-0.69/tools/KyotoCorpus.pm
x cabocha-0.69/tools/KNBC2KC.pl
x cabocha-0.69/cabocharc.in
x cabocha-0.69/INSTALL
x cabocha-0.69/aclocal.m4
x cabocha-0.69/README
x cabocha-0.69/config.h.in
x cabocha-0.69/COPYING
x cabocha-0.69/example/
x cabocha-0.69/example/example2.cpp
x cabocha-0.69/example/example.c
x cabocha-0.69/Makefile.am
x cabocha-0.69/model/
x cabocha-0.69/model/dep.ipa.txt
x cabocha-0.69/model/ne.juman.txt
x cabocha-0.69/model/dep.juman.txt
x cabocha-0.69/model/Makefile.in
x cabocha-0.69/model/dep.unidic.txt
x cabocha-0.69/model/chunk.ipa.txt
x cabocha-0.69/model/chunk.unidic.txt
x cabocha-0.69/model/ne.ipa.txt
x cabocha-0.69/model/ne.unidic.txt
x cabocha-0.69/model/chunk.juman.txt
x cabocha-0.69/model/Makefile.am
x cabocha-0.69/doc/
x cabocha-0.69/doc/README.txt
x cabocha-0.69/doc/doxygen/
x cabocha-0.69/doc/doxygen/classes.html
x cabocha-0.69/doc/doxygen/ftv2plastnode.png
x cabocha-0.69/doc/doxygen/nav_g.png
x cabocha-0.69/doc/doxygen/files.html
x cabocha-0.69/doc/doxygen/tab_b.gif
x cabocha-0.69/doc/doxygen/nav_h.png
x cabocha-0.69/doc/doxygen/namespaceCaboCha.html
x cabocha-0.69/doc/doxygen/functions_vars.html
x cabocha-0.69/doc/doxygen/tab_s.png
x cabocha-0.69/doc/doxygen/namespacemembers_eval.html
x cabocha-0.69/doc/doxygen/ftv2pnode.png
x cabocha-0.69/doc/doxygen/cabocha_8h.html
x cabocha-0.69/doc/doxygen/open.png
x cabocha-0.69/doc/doxygen/globals_func.html
x cabocha-0.69/doc/doxygen/structcabocha__token__t.html
x cabocha-0.69/doc/doxygen/doxygen.css
x cabocha-0.69/doc/doxygen/ftv2node.png
x cabocha-0.69/doc/doxygen/functions_func.html
x cabocha-0.69/doc/doxygen/ftv2mnode.png
x cabocha-0.69/doc/doxygen/ftv2doc.png
x cabocha-0.69/doc/doxygen/globals_enum.html
x cabocha-0.69/doc/doxygen/classCaboCha_1_1Tree.html
x cabocha-0.69/doc/doxygen/functions.html
x cabocha-0.69/doc/doxygen/ftv2folderopen.png
x cabocha-0.69/doc/doxygen/namespacemembers.html
x cabocha-0.69/doc/doxygen/globals.html
x cabocha-0.69/doc/doxygen/ftv2link.png
x cabocha-0.69/doc/doxygen/ftv2folderclosed.png
x cabocha-0.69/doc/doxygen/structcabocha__token__t-members.html
x cabocha-0.69/doc/doxygen/bdwn.png
x cabocha-0.69/doc/doxygen/namespacemembers_func.html
x cabocha-0.69/doc/doxygen/structcabocha__chunk__t.html
x cabocha-0.69/doc/doxygen/bc_s.png
x cabocha-0.69/doc/doxygen/cabocha_8h_source.html
x cabocha-0.69/doc/doxygen/globals_eval.html
x cabocha-0.69/doc/doxygen/ftv2mo.png
x cabocha-0.69/doc/doxygen/doxygen.png
x cabocha-0.69/doc/doxygen/index.html
x cabocha-0.69/doc/doxygen/tab_b.png
x cabocha-0.69/doc/doxygen/closed.png
x cabocha-0.69/doc/doxygen/nav_f.png
x cabocha-0.69/doc/doxygen/ftv2lastnode.png
x cabocha-0.69/doc/doxygen/classCaboCha_1_1Tree-members.html
x cabocha-0.69/doc/doxygen/tabs.css
x cabocha-0.69/doc/doxygen/ftv2vertline.png
x cabocha-0.69/doc/doxygen/ftv2cl.png
x cabocha-0.69/doc/doxygen/tab_h.png
x cabocha-0.69/doc/doxygen/globals_type.html
x cabocha-0.69/doc/doxygen/structcabocha__chunk__t-members.html
x cabocha-0.69/doc/doxygen/globals_defs.html
x cabocha-0.69/doc/doxygen/annotated.html
x cabocha-0.69/doc/doxygen/namespacemembers_type.html
x cabocha-0.69/doc/doxygen/tab_l.gif
x cabocha-0.69/doc/doxygen/tab_a.png
x cabocha-0.69/doc/doxygen/sync_off.png
x cabocha-0.69/doc/doxygen/ftv2ns.png
x cabocha-0.69/doc/doxygen/tab_r.gif
x cabocha-0.69/doc/doxygen/classCaboCha_1_1Parser-members.html
x cabocha-0.69/doc/doxygen/ftv2splitbar.png
x cabocha-0.69/doc/doxygen/ftv2mlastnode.png
x cabocha-0.69/doc/doxygen/classCaboCha_1_1Parser.html
x cabocha-0.69/doc/doxygen/namespaces.html
x cabocha-0.69/doc/doxygen/sync_on.png
x cabocha-0.69/doc/doxygen/namespacemembers_enum.html
x cabocha-0.69/doc/doxygen/dir_68267d1309a1af8e8297ef4c3efbcdba.html
x cabocha-0.69/doc/doxygen/dynsections.js
x cabocha-0.69/doc/doxygen/ftv2blank.png
x cabocha-0.69/doc/cabocha.cfg
%
{
"kind": "youtube#commentThreadListResponse",
"etag": "tSw5WSiFS4IMMytcgoYXJ9zpu6I",
"nextPageToken": "QURTSl9pMDFKVnZtTFl0NFZOdnhaZFpXaFBOcWU5aDA0QWM5bDVpYk5oVTd1WDQwSDY1cU11OVBOZHNnWFNOTmNJby1Db1JpWno2Qnd5bw==",
"pageInfo": {
"totalResults": 5,
"resultsPerPage": 5
},
"items": [
{
"kind": "youtube#commentThread",
"etag": "An3zz04lgE7jUVO7VXXmqfdwFjk",
"id": "UgwDY44NUll4uiZXqqx4AaABAg",
"snippet": {
"videoId": "fdsaZ8EMR2U",
"topLevelComment": {
"kind": "youtube#comment",
"etag": "Kty1w2F4dTbXmakl-ywdK28vLEg",
"id": "UgwDY44NUll4uiZXqqx4AaABAg",
"snippet": {
"videoId": "fdsaZ8EMR2U",
"textDisplay": "SO gooood",
"textOriginal": "SO gooood",
"authorDisplayName": "fatt musiek",
"authorProfileImageUrl": "https://yt3.ggpht.com/ytc/AAUvwngpQ-20jVq0c-9aC-wDJ87aTKi2QvPLTRN2GXGRaw=s48-c-k-c0x00ffffff-no-rj",
"authorChannelUrl": "http://www.youtube.com/channel/UCl3ha3zwY9p6CemIZZXIdXQ",
"authorChannelId": {
"value": "UCl3ha3zwY9p6CemIZZXIdXQ"
},
"canRate": true,
"viewerRating": "none",
"likeCount": 0,
"publishedAt": "2021-05-22T18:48:34Z",
"updatedAt": "2021-05-22T18:48:34Z"
}
},
"canReply": true,
"totalReplyCount": 0,
"isPublic": true
}
},
{
"kind": "youtube#commentThread",
"etag": "QVJH5RHTNij1fN5jRj_mNcDscHA",
"id": "Ugx8sUuwqKqPVG9eSuJ4AaABAg",
"snippet": {
"videoId": "fdsaZ8EMR2U",
"topLevelComment": {
"kind": "youtube#comment",
"etag": "Y_SsBrGGxQoLpcztQqND9wGarUc",
"id": "Ugx8sUuwqKqPVG9eSuJ4AaABAg",
"snippet": {
"videoId": "fdsaZ8EMR2U",
"textDisplay": "so what if really yuffie have met johnny hehe",
"textOriginal": "so what if really yuffie have met johnny hehe",
"authorDisplayName": "GregOrio Barachina",
"authorProfileImageUrl": "https://yt3.ggpht.com/ytc/AAUvwnjgJE6zBYksYQWt8TmKlMDYOyG0t-BHPNWWmvUUPQ=s48-c-k-c0x00ffffff-no-rj",
"authorChannelUrl": "http://www.youtube.com/channel/UCUs2OJ4-KqYGS2EPJCDj7tQ",
"authorChannelId": {
"value": "UCUs2OJ4-KqYGS2EPJCDj7tQ"
},
"canRate": true,
"viewerRating": "none",
"likeCount": 0,
"publishedAt": "2021-05-21T13:42:45Z",
"updatedAt": "2021-05-21T13:42:45Z"
}
},
"canReply": true,
"totalReplyCount": 0,
"isPublic": true
}
},
{
"kind": "youtube#commentThread",
"etag": "ggLtp9jtNyrqb3JSvzkvUDon7gg",
"id": "UgwP-4ucsrWh_iXJQMN4AaABAg",
"snippet": {
"videoId": "fdsaZ8EMR2U",
"topLevelComment": {
"kind": "youtube#comment",
"etag": "Raxyf3_Zw3ksZyGeWDt7_HHW8SA",
"id": "UgwP-4ucsrWh_iXJQMN4AaABAg",
"snippet": {
"videoId": "fdsaZ8EMR2U",
"textDisplay": "The Aerith and Cloud scene is much more meaningful than the one with Tifa. Still a good scene but come on...Aerith just appearing amongst the flowers and getting to see her again...priceless",
"textOriginal": "The Aerith and Cloud scene is much more meaningful than the one with Tifa. Still a good scene but come on...Aerith just appearing amongst the flowers and getting to see her again...priceless",
"authorDisplayName": "Maxx Doran",
"authorProfileImageUrl": "https://yt3.ggpht.com/ytc/AAUvwnixfMDBxLt_TfUEjlpHhU-OvwE1vjCgpFBAVIMxjg=s48-c-k-c0x00ffffff-no-rj",
"authorChannelUrl": "http://www.youtube.com/channel/UCXcLTX_9fNHLVAMr_plxeqQ",
"authorChannelId": {
"value": "UCXcLTX_9fNHLVAMr_plxeqQ"
},
"canRate": true,
"viewerRating": "none",
"likeCount": 0,
"publishedAt": "2021-05-18T01:50:04Z",
"updatedAt": "2021-05-18T01:50:04Z"
}
},
"canReply": true,
"totalReplyCount": 0,
"isPublic": true
}
},
{
"kind": "youtube#commentThread",
"etag": "ptUVfOGBkZDnUXKFoDaGnQ9Y-gw",
"id": "UgzTN_4ek7syWNNbCrB4AaABAg",
"snippet": {
"videoId": "fdsaZ8EMR2U",
"topLevelComment": {
"kind": "youtube#comment",
"etag": "L3vDroBKOAklgIqKSkcX_JvLn_g",
"id": "UgzTN_4ek7syWNNbCrB4AaABAg",
"snippet": {
"videoId": "fdsaZ8EMR2U",
"textDisplay": "You caught on to the magnify barrier idea so early. I was part way into hard mode before I thought of that.",
"textOriginal": "You caught on to the magnify barrier idea so early. I was part way into hard mode before I thought of that.",
"authorDisplayName": "Justin Edwards",
"authorProfileImageUrl": "https://yt3.ggpht.com/ytc/AAUvwngz1mU5zD3QHSRVU3jXTEZApnkYsmAzCKFXxUyD1w=s48-c-k-c0x00ffffff-no-rj",
"authorChannelUrl": "http://www.youtube.com/channel/UCO-oPQJCpNw87M6YbcuuFMw",
"authorChannelId": {
"value": "UCO-oPQJCpNw87M6YbcuuFMw"
},
"canRate": true,
"viewerRating": "none",
"likeCount": 0,
"publishedAt": "2021-05-10T07:25:36Z",
"updatedAt": "2021-05-10T07:25:36Z"
}
},
"canReply": true,
"totalReplyCount": 0,
"isPublic": true
}
},
{
"kind": "youtube#commentThread",
"etag": "vfaqu09YbjpC_akz6riq0_XpSCw",
"id": "UgygOOysmSAraKnx81h4AaABAg",
"snippet": {
"videoId": "fdsaZ8EMR2U",
"topLevelComment": {
"kind": "youtube#comment",
"etag": "k8vIS0anrGkqCcFfyj0gnrUwXQI",
"id": "UgygOOysmSAraKnx81h4AaABAg",
"snippet": {
"videoId": "fdsaZ8EMR2U",
"textDisplay": "Y'know Max, you COULD have just run 5k steps in Aerith's garden, checked what the Materia did, and moved on. Or, maybe, look up an online guide, since by now I'm sure SOMEONE has posted one.",
"textOriginal": "Y'know Max, you COULD have just run 5k steps in Aerith's garden, checked what the Materia did, and moved on. Or, maybe, look up an online guide, since by now I'm sure SOMEONE has posted one.",
"authorDisplayName": "Soma Cruz the Demigod of Balance",
"authorProfileImageUrl": "https://yt3.ggpht.com/ytc/AAUvwnilg2dkOBvJqeTbW34CBoxURHLWv78fnbCRkArv=s48-c-k-c0x00ffffff-no-rj",
"authorChannelUrl": "http://www.youtube.com/channel/UCNaiemmWvNbzfaQm5e3hyqA",
"authorChannelId": {
"value": "UCNaiemmWvNbzfaQm5e3hyqA"
},
"canRate": true,
"viewerRating": "none",
"likeCount": 0,
"publishedAt": "2021-05-07T02:21:29Z",
"updatedAt": "2021-05-07T02:21:29Z"
}
},
"canReply": true,
"totalReplyCount": 1,
"isPublic": true
},
"replies": {
"comments": [
{
"kind": "youtube#comment",
"etag": "oMSJ1drDJreTmguX72NWydzfbcY",
"id": "UgygOOysmSAraKnx81h4AaABAg.9N10GKEX1209N2h_vQGc9Y",
"snippet": {
"videoId": "fdsaZ8EMR2U",
"textDisplay": "\u003ca href=\"https://www.youtube.com/watch?v=fdsaZ8EMR2U&t=38m03s\"\u003e38:03\u003c/a\u003e These things don't stagger? But each time they clone, they lose health, and the clones are much weaker. Damn, I see why you had trouble with these, Max.",
"textOriginal": "38:03 These things don't stagger? But each time they clone, they lose health, and the clones are much weaker. Damn, I see why you had trouble with these, Max.",
"parentId": "UgygOOysmSAraKnx81h4AaABAg",
"authorDisplayName": "Soma Cruz the Demigod of Balance",
"authorProfileImageUrl": "https://yt3.ggpht.com/ytc/AAUvwnilg2dkOBvJqeTbW34CBoxURHLWv78fnbCRkArv=s48-c-k-c0x00ffffff-no-rj",
"authorChannelUrl": "http://www.youtube.com/channel/UCNaiemmWvNbzfaQm5e3hyqA",
"authorChannelId": {
"value": "UCNaiemmWvNbzfaQm5e3hyqA"
},
"canRate": true,
"viewerRating": "none",
"likeCount": 0,
"publishedAt": "2021-05-07T18:08:01Z",
"updatedAt": "2021-05-07T18:08:01Z"
}
}
]
}
}
]
}
Comments
Comments ではコメント ID を直接指定してデータを取得します。上の例で取得した 5 つのコメント ID を「id」に指定してデータを取得してみます。
# -*- coding: utf-8 -*-
# Sample Python code for youtube.comments.list
# See instructions for running these code samples locally:
# https://developers.google.com/explorer-help/guides/code_samples#python
import os
import googleapiclient.discovery
def main():
# Disable OAuthlib's HTTPS verification when running locally.
# *DO NOT* leave this option enabled in production.
os.environ["OAUTHLIB_INSECURE_TRANSPORT"] = "1"
api_service_name = "youtube"
api_version = "v3"
DEVELOPER_KEY = "YOUR_API_KEY"
youtube = googleapiclient.discovery.build(
api_service_name, api_version, developerKey = DEVELOPER_KEY)
request = youtube.comments().list(
part="id,snippet",
id="UgwDY44NUll4uiZXqqx4AaABAg,Ugx8sUuwqKqPVG9eSuJ4AaABAg,UgwP-4ucsrWh_iXJQMN4AaABAg,UgzTN_4ek7syWNNbCrB4AaABAg,UgygOOysmSAraKnx81h4AaABAg"
)
response = request.execute()
print(response)
if __name__ == "__main__":
main()
下記の様な JSON が返ってきます。CommentThreads の方ではコメントが投稿された動画の ID や、コメントに対する返信も含まれていましたが、Comments の方には含まれません。
{
"kind": "youtube#commentListResponse",
"etag": "vwaB3KAa_Snb_GuTkkMYrlL7Jrg",
"items": [
{
"kind": "youtube#comment",
"etag": "E9ovRZPTGOUQzHb0AEiKA26EJxY",
"id": "UgwDY44NUll4uiZXqqx4AaABAg",
"snippet": {
"textDisplay": "SO gooood",
"textOriginal": "SO gooood",
"authorDisplayName": "fatt musiek",
"authorProfileImageUrl": "https://yt3.ggpht.com/ytc/AAUvwngpQ-20jVq0c-9aC-wDJ87aTKi2QvPLTRN2GXGRaw=s48-c-k-c0x00ffffff-no-rj",
"authorChannelUrl": "http://www.youtube.com/channel/UCl3ha3zwY9p6CemIZZXIdXQ",
"authorChannelId": {
"value": "UCl3ha3zwY9p6CemIZZXIdXQ"
},
"canRate": true,
"viewerRating": "none",
"likeCount": 0,
"publishedAt": "2021-05-22T18:48:34Z",
"updatedAt": "2021-05-22T18:48:34Z"
}
},
{
"kind": "youtube#comment",
"etag": "FG5oWvmMF39kDNl_rlnzb0bsSWM",
"id": "Ugx8sUuwqKqPVG9eSuJ4AaABAg",
"snippet": {
"textDisplay": "so what if really yuffie have met johnny hehe",
"textOriginal": "so what if really yuffie have met johnny hehe",
"authorDisplayName": "GregOrio Barachina",
"authorProfileImageUrl": "https://yt3.ggpht.com/ytc/AAUvwnjgJE6zBYksYQWt8TmKlMDYOyG0t-BHPNWWmvUUPQ=s48-c-k-c0x00ffffff-no-rj",
"authorChannelUrl": "http://www.youtube.com/channel/UCUs2OJ4-KqYGS2EPJCDj7tQ",
"authorChannelId": {
"value": "UCUs2OJ4-KqYGS2EPJCDj7tQ"
},
"canRate": true,
"viewerRating": "none",
"likeCount": 0,
"publishedAt": "2021-05-21T13:42:45Z",
"updatedAt": "2021-05-21T13:42:45Z"
}
},
{
"kind": "youtube#comment",
"etag": "WQw2UyILXAhkYOAl-AKScZi1pCY",
"id": "UgwP-4ucsrWh_iXJQMN4AaABAg",
"snippet": {
"textDisplay": "The Aerith and Cloud scene is much more meaningful than the one with Tifa. Still a good scene but come on...Aerith just appearing amongst the flowers and getting to see her again...priceless",
"textOriginal": "The Aerith and Cloud scene is much more meaningful than the one with Tifa. Still a good scene but come on...Aerith just appearing amongst the flowers and getting to see her again...priceless",
"authorDisplayName": "Maxx Doran",
"authorProfileImageUrl": "https://yt3.ggpht.com/ytc/AAUvwnixfMDBxLt_TfUEjlpHhU-OvwE1vjCgpFBAVIMxjg=s48-c-k-c0x00ffffff-no-rj",
"authorChannelUrl": "http://www.youtube.com/channel/UCXcLTX_9fNHLVAMr_plxeqQ",
"authorChannelId": {
"value": "UCXcLTX_9fNHLVAMr_plxeqQ"
},
"canRate": true,
"viewerRating": "none",
"likeCount": 0,
"publishedAt": "2021-05-18T01:50:04Z",
"updatedAt": "2021-05-18T01:50:04Z"
}
},
{
"kind": "youtube#comment",
"etag": "Vchl7kutnRgZb-uKYjMNMrJQ2qQ",
"id": "UgzTN_4ek7syWNNbCrB4AaABAg",
"snippet": {
"textDisplay": "You caught on to the magnify barrier idea so early. I was part way into hard mode before I thought of that.",
"textOriginal": "You caught on to the magnify barrier idea so early. I was part way into hard mode before I thought of that.",
"authorDisplayName": "Justin Edwards",
"authorProfileImageUrl": "https://yt3.ggpht.com/ytc/AAUvwngz1mU5zD3QHSRVU3jXTEZApnkYsmAzCKFXxUyD1w=s48-c-k-c0x00ffffff-no-rj",
"authorChannelUrl": "http://www.youtube.com/channel/UCO-oPQJCpNw87M6YbcuuFMw",
"authorChannelId": {
"value": "UCO-oPQJCpNw87M6YbcuuFMw"
},
"canRate": true,
"viewerRating": "none",
"likeCount": 0,
"publishedAt": "2021-05-10T07:25:36Z",
"updatedAt": "2021-05-10T07:25:36Z"
}
},
{
"kind": "youtube#comment",
"etag": "pbfhdpIgB5QCKnr4Inkm_U2wbjQ",
"id": "UgygOOysmSAraKnx81h4AaABAg",
"snippet": {
"textDisplay": "Y'know Max, you COULD have just run 5k steps in Aerith's garden, checked what the Materia did, and moved on. Or, maybe, look up an online guide, since by now I'm sure SOMEONE has posted one.",
"textOriginal": "Y'know Max, you COULD have just run 5k steps in Aerith's garden, checked what the Materia did, and moved on. Or, maybe, look up an online guide, since by now I'm sure SOMEONE has posted one.",
"authorDisplayName": "Soma Cruz the Demigod of Balance",
"authorProfileImageUrl": "https://yt3.ggpht.com/ytc/AAUvwnilg2dkOBvJqeTbW34CBoxURHLWv78fnbCRkArv=s48-c-k-c0x00ffffff-no-rj",
"authorChannelUrl": "http://www.youtube.com/channel/UCNaiemmWvNbzfaQm5e3hyqA",
"authorChannelId": {
"value": "UCNaiemmWvNbzfaQm5e3hyqA"
},
"canRate": true,
"viewerRating": "none",
"likeCount": 0,
"publishedAt": "2021-05-07T02:21:29Z",
"updatedAt": "2021-05-07T02:21:29Z"
}
}
]
}
$ sudo certbot --nginx -d example.com -d www.example.com
Saving debug log to /var/log/letsencrypt/letsencrypt.log
Plugins selected: Authenticator nginx, Installer nginx
Enter email address (used for urgent renewal and security notices) (Enter 'c' to
cancel): example@gmail.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Please read the Terms of Service at
https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf. You must
agree in order to register with the ACME server at
https://acme-v02.api.letsencrypt.org/directory
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(A)gree/(C)ancel: A
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Would you be willing to share your email address with the Electronic Frontier
Foundation, a founding partner of the Let's Encrypt project and the non-profit
organization that develops Certbot? We'd like to send you email about our work
encrypting the web, EFF news, campaigns, and ways to support digital freedom.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
(Y)es/(N)o: N
Obtaining a new certificate
Performing the following challenges:
http-01 challenge for graffuhs.com
http-01 challenge for www.graffuhs.com
Waiting for verification...
Cleaning up challenges
Deploying Certificate to VirtualHost /etc/nginx/sites-enabled/graffuhs.com
Deploying Certificate to VirtualHost /etc/nginx/sites-enabled/graffuhs.com
Please choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
1: No redirect - Make no further changes to the webserver configuration.
2: Redirect - Make all requests redirect to secure HTTPS access. Choose this for
new sites, or if you're confident your site works on HTTPS. You can undo this
change by editing your web server's configuration.
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Select the appropriate number [1-2] then [enter] (press 'c' to cancel): 2
Redirecting all traffic on port 80 to ssl in /etc/nginx/sites-enabled/graffuhs.com
Redirecting all traffic on port 80 to ssl in /etc/nginx/sites-enabled/graffuhs.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Congratulations! You have successfully enabled https://graffuhs.com and
https://www.graffuhs.com
You should test your configuration at:
https://www.ssllabs.com/ssltest/analyze.html?d=graffuhs.com
https://www.ssllabs.com/ssltest/analyze.html?d=www.graffuhs.com
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
IMPORTANT NOTES:
- Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/graffuhs.com/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/graffuhs.com/privkey.pem
Your cert will expire on 2021-08-07. To obtain a new or tweaked
version of this certificate in the future, simply run certbot again
with the "certonly" option. To non-interactively renew *all* of
your certificates, run "certbot renew"
- Your account credentials have been saved in your Certbot
configuration directory at /etc/letsencrypt. You should make a
secure backup of this folder now. This configuration directory will
also contain certificates and private keys obtained by Certbot so
making regular backups of this folder is ideal.
- If you like Certbot, please consider supporting our work by:
Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
Donating to EFF: https://eff.org/donate-le