我们最近实现了IBM Watson.In的文档转换API this can I use web files (www.something.com)作为输入。
curl -X POST -u "username":"password" -F config="{\"conversion_target\":\"answer_units\"}" -F "file=@www.something.com/readme.html;type=text/html" "https://gateway.watsonplatform.net/document-conversion/api/v1/convert_document?version=2015-12-15"
发布于 2017-02-28 20:40:14
不需要,您首先需要下载要转换的HTML文件。然后,您可以将其作为-F "file=@downloadedFile.html"传递给文档转换服务。
发布于 2017-02-28 23:19:58
或者,您可以通过管道将STDIN传递给curl命令:
curl 'https://en.wikipedia.org/wiki/Terrestrial_Planet_Finder' | \
curl -u $USERPASS -F "config=@dcs_config.json" -F file=@- "$URL/v1/convert_document?version=2017-01-01"https://stackoverflow.com/questions/42504658
复制相似问题