1
0
mirror of https://github.com/webrecorder/pywb.git synced 2025-03-28 00:25:21 +01:00

Fixes for README.rst

badges, tables finally working.
This commit is contained in:
ikreymer 2014-03-12 17:50:47 -07:00
parent 681fd79974
commit 78af82d6b1

View File

@ -1,8 +1,11 @@
PyWb 0.2.0 PyWb 0.2.0
============= =============
.. image:: https://travis-ci.org/ikreymer/pywb.png?branch=master :target: https://travis-ci.org/ikreymer/pywb .. image:: https://travis-ci.org/ikreymer/pywb.png?branch=master
.. image:: https://coveralls.io/repos/ikreymer/pywb/badge.png?branch=master :target: https://coveralls.io/r/ikreymer/pywb?branch=master :target: https://travis-ci.org/ikreymer/pywb
.. image:: https://coveralls.io/repos/ikreymer/pywb/badge.png?branch=master
:target: https://coveralls.io/r/ikreymer/pywb?branch=master
pywb is a new Python implementation of the Wayback Machine software and pywb is a new Python implementation of the Wayback Machine software and
tools. tools.
@ -14,7 +17,7 @@ captures.
Latest Changes Latest Changes
~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~
The basic feature set of web replay is nearly complete. The basic feature set of web replay is nearly complete in this version.
pywb now features new `domain-specific rules <pywb/rules.yaml>`_ which pywb now features new `domain-specific rules <pywb/rules.yaml>`_ which
are applied to certain difficult and dynamic content in order to make are applied to certain difficult and dynamic content in order to make
@ -30,15 +33,16 @@ pywb is compatible with the standard Wayback Machine url format:
``http://<host>/<collection>/<timestamp>/<original url>`` ``http://<host>/<collection>/<timestamp>/<original url>``
Ex: The `Internet Archive Wayback Machine <https//archive.org/web/>`_ Some examples of this url from other wayback machines (not implemented via pywb):
has urls of the form:
``http://web.archive.org/web/20140312103519/http://www.example.com``
``http://www.webarchive.org.uk/wayback/archive/20100513010014/http://www.example.com/``
``http://web.archive.org/web/20131015120316/http://archive.org/``
A listing of archived content, often in calendar form, is available when A listing of archived content, often in calendar form, is available when
a ``*`` is used instead of timestamp. a ``*`` is used instead of timestamp.
The Wayback Machine uses an html parser to rewrite relative and absolute The Wayback Machine often uses an html parser to rewrite relative and absolute
links, as well as absolute links found in javascript, css and some xml. links, as well as absolute links found in javascript, css and some xml.
pywb provides these features as a starting point. pywb provides these features as a starting point.
@ -72,13 +76,13 @@ and ``http://iana.org``
Runnable Apps Runnable Apps
~~~~~~~~~~~~~ ~~~~~~~~~~~~~
The pywb tool suite currently includes two runnable applications in the The pywb tool suite currently includes two runnable applications, installed
``pywb.apps`` package. as command-line scripts via setuptools
- ``python -m pywb.apps.wayback`` -- start the full wayback on port - ``wayback`` or ``python -m pywb.apps.wayback`` -- start the full wayback on port
8080 8080
- ``python -m pywb.apps.cdx_server`` -- start standalone cdx server on - ``cdx-server`` or ``python -m pywb.apps.cdx_server`` -- start standalone cdx server on
port 8090 port 8090
Step-By-Step Installation Step-By-Step Installation
@ -90,8 +94,7 @@ To start a pywb with sample data:
2. Install with ``python setup.py install`` 2. Install with ``python setup.py install``
3. Run pywb via ``python -m pywb.apps.wayback`` to start the server in 3. Run ``wayback`` (shorthand for ``python -m pywb.apps.wayback``) to start the pywb wayback server with reference WSGI implementation.
implementation.
OR run ``run-uwsgi.sh`` to start with uWSGI (see below for more info). OR run ``run-uwsgi.sh`` to start with uWSGI (see below for more info).
@ -101,17 +104,13 @@ OR run ``run-uwsgi.sh`` to start with uWSGI (see below for more info).
If everything worked, the following pages should be loading (served from If everything worked, the following pages should be loading (served from
*sample\_archive* dir): *sample\_archive* dir):
\| Original Url \| Latest Capture \| List of All Captures \| \| +------------------------+----------------------------------------+--------------------------------------------+
------------- \| ------------- \| ----------------------- \| \| | Original Url | Latest Capture | List of All Captures |
``http://example.com`` \| +========================+========================================+============================================+
`http://localhost:8080/pywb/example.com <http://localhost:8080/pywb/example.com>`_ | ``http://example.com`` | http://localhost:8080/pywb/example.com | http://localhost:8080/pywb/\*/example.com |
\| +------------------------+----------------------------------------+--------------------------------------------+
[http://localhost:8080/pywb/*/example.com](http://localhost:8080/pywb/*/example.com) | ``http://iana.org`` | http://localhost:8080/pywb/iana.org | http://localhost:8080/pywb/\*/iana.org |
\| \| ``http://iana.org`` \| +------------------------+----------------------------------------+--------------------------------------------+
`http://localhost:8080/pywb/iana.org <http://localhost:8080/pywb/iana.org>`_
\|
[http://localhost:8080/pywb/*/iana.org](http://localhost:8080/pywb/*/iana.org)
\|
uWSGI startup script uWSGI startup script
^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^