Changes between Initial Version and Version 1 of QtWebKitMirrorGuide


Ignore:
Timestamp:
Sep 30, 2009 1:38:08 AM (15 years ago)
Author:
zecke@selfish.org
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • QtWebKitMirrorGuide

    v1 v1  
     1== Using the mirror application to mirror websites ==
     2
     3For benchmarking we want to use real webcontent but we don't want to be subject to different versions of websites (e.g. when they are dynamically created), different network bandwidth and latency. The '''mirror''' application can be used to store the downloaded content in a local SQLite3 database and the '''http_server''' can serve this content.
     4
     5It can be used in cases a user is seeing a problem but it can not be reproduced locally. In this case the user should attempt to use the mirror application to create a copy and forward the database to the developer.
     6
     7
     8=== Building the mirror application ===
     9
     10The mirror application is using qmake to build and is working best with Qt4.6.
     11{{{
     12$ cd mirror
     13$ qmake
     14$ make
     15$ ./mirror -h
     16./mirror options [url]
     17        -c cookies.ini  Use the cookies from this file.
     18                        The cookie file is compatible with Arora.
     19        -v              Show the WebView when running
     20        -k              Keep the application running.
     21}}}
     22
     23=== Using the mirror application to mirror content ===
     24
     25The mirror application is able to use the [http://www.arora-browser.org Arora] CookieJar. On a GNU/Linux system this file is normally located in '''$HOME/.local/share/data/Arora/cookies.ini'''. The benefit of using a cookie file is that one can log in to websites like ''gmail.com'', ''facebook.com'' using Arora and then will be able to mirror pages with the logged in state.
     26
     27By default the '''mirror''' application is loading the page and then exiting. One can use the '''-k''' option to keep the application running. This can be used on pages that utilize a lot of AJAX that will load more resources even after having finished the initial loading. This option was used on the Nokia benchmarking content for the ''gmail.com'' website.
     28
     29The '''-v''' option can be used to make the QWebView used to download the pages visible. This can be used to see which sites got downloaded or to manually crawl the web.