A Qt tool to retrieve information about HTML elements in a web page
C++ CMake
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
src
.gitignore
.mailmap
AUTHORS
CMakeLists.txt
LICENSE
README.md

README.md

WebPageTraverser

Description

WebPageTraverser is a Qt tool to retrieve information about HTML elements in a web page.

It includes info about the position, the text, the size and more.

Dependencies

  • Qt (QtWebKit, QtQuick) >= 5.2
    • e.g. for Ubuntu: qt5-default, qtbase5-dev, libqt5webkit5-dev
  • CMake >= 2.8.8
    • e.g. for Ubuntu: cmake
  • Make and a C++ compiler

Build and installation

$ mkdir build
$ cd build
$ cmake ../
$ make
# make install

Build errors

  • If CMake does not find the path to your Qt 5 instalation, then set the -DCMAKE_PREFIX_PATH option to that path, e.g.:

    $ cmake ../ -DCMAKE_PREFIX_PATH=/usr/local/lib/cmake/

NOTE: That path should point to the parent of the folder that contains Qt5CoreConfig.cmake

Usage

$ WebPageTraverser http://www.google.it

Check WebPageTraverser -h for more.

Runtime errors

  • QXcbConnection: Could not connect to display

You don't have a X11 session running. You can simulate it by using Xvfb, install it and then run:

$ xvfb-run -a WebPageTraverser http://www.google.it

License

LGPL3