{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "## Use Translation-Gummy via Docker" ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "Click [here](https://github.com/iwasakishuto/Translation-Gummy/tree/master/docker) for details." ] }, { "cell_type": "markdown", "metadata": {}, "source": [ "### Create PDF from journal URL" ] }, { "cell_type": "code", "execution_count": 1, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "failed to find \u001b[34mlibmagic\u001b[0m, so use \u001b[34mmimetypes\u001b[0m instead.\n", "\u001b[31m[failure]\u001b[0m local driver can't be built.\n", "\u001b[32m[success]\u001b[0m remote driver can be built.\n", "DRIVER_TYPE: \u001b[32mremote\u001b[0m\n" ] } ], "source": [ "from gummy import TranslationGummy\n", "from gummy.utils import get_driver" ] }, { "cell_type": "code", "execution_count": 2, "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "DRIVER_TYPE: \u001b[32mremote\u001b[0m\n", "Estimated Journal Type : \u001b[01mNature\u001b[0m\n", "Crawling Type: \u001b[01msoup\u001b[0m\n", "Use \u001b[32mUselessGateWay\u001b[0m.\u001b[34m_pass2others\u001b[0m method.\n", "\n", "Decompose unnecessary tags to make it easy to parse.\n", "==============================\n", "Decomposed \u001b[32m\u001b[0m tag (63)\n", "Decomposed \u001b[32m\u001b[0m tag (19)\n", "Decomposed \u001b[32m\u001b[0m tag (281)\n", "Decomposed \u001b[32m