diff --git a/requirements.txt b/requirements.txt index 740b633bf20b621a70155dd9bf04b8db225fee7b..484a974635e087f6c9fefb168ba491b6110756de 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,2 @@ requests>=2.0 -jupyter>=1.0 -plotly>=1.9.0 \ No newline at end of file +jupyter>=1.0 \ No newline at end of file diff --git a/sample6.ipynb b/sample6.ipynb index 651dcb02e24ce69395fa5fa5a5954fcfd2061774..6b024593315de92c7f050fe4c7ff63b63e20d848 100644 --- a/sample6.ipynb +++ b/sample6.ipynb @@ -8,24 +8,13 @@ { "cell_type": "code", "execution_count": 1, - "metadata": {}, - "outputs": [], - "source": [ - "import plotly.offline as py\n", - "import plotly.graph_objs as go\n", - "\n" - ] - }, - { - "cell_type": "code", - "execution_count": 2, "metadata": { "collapsed": true }, "outputs": [], "source": [ "from webarchiv import WebarchivSession\n", - "apikey = 'Zz2tQls7fuaocX2pjrfc2npojqbGwXL2'\n", + "apikey = '2pm8i0hnmpcTK4Oj4CUeBoZd7vywrm4c'\n", "w = WebarchivSession(apikey)" ] }, @@ -38,7 +27,7 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": 2, "metadata": {}, "outputs": [], "source": [ @@ -54,7 +43,7 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 3, "metadata": {}, "outputs": [], "source": [ @@ -79,7 +68,7 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": 4, "metadata": {}, "outputs": [ { @@ -97,25 +86,6 @@ " x.append(period['period'])\n", " y.append(period['total'])\n", " \n", - "trace0 = go.Bar(\n", - " x=x,\n", - " y=y,\n", - " name='Anzahl Captures mit \"situationselastisch\"',\n", - " marker=dict(\n", - " color='rgb(49,130,189)'\n", - " )\n", - ")\n", - "\n", - "data = [trace0]\n", - "layout = go.Layout(\n", - " xaxis=dict(tickangle=-45),\n", - " barmode='group',\n", - ")\n", - "\n", - "fig = go.Figure(data=data, layout=layout)\n", - "py.iplot(fig, filename='angled-text-bar')\n", - "\n", - "\n", "print(x)\n", "print(y)\n" ] diff --git a/webarchiv.py b/webarchiv.py index 922b4394382dd56eab47e09de3d6fa8e6410b8b0..c70054af62625eb9350ead8da4aa82e705572427 100644 --- a/webarchiv.py +++ b/webarchiv.py @@ -24,9 +24,8 @@ class WebarchivSession: Protocol, domain and path prefix for the Webarchive API, with a single positional format string placeholder for the REST operation and parameters. - return 'https://webarchiv.onb.ac.at/api/{}' """ - return 'http://192.168.1.202:8080/webarchive_web/api/{}' + return 'https://webarchiv.onb.ac.at/api/{}' @property def _error_template(self): @@ -245,7 +244,7 @@ if __name__ == '__main__': # noinspection SpellCheckingInspection w = WebarchivSession('2pm8i0hnmpcTK4Oj4CUeBoZd7vywrm4c') # response = w.wayback_search("http://www.onb.ac.at") - #response = w.wayback_search("http://frauenhetz.jetzt") +# response = w.wayback_search("http://frauenhetz.jetzt") response = w.histogram_search("Nationalbibliothek Prunksaal Schwarzenegger") # response = w.wayback_search("x")