Contribute  :  Calendar  :  Advanced Search  :  Site Statistics  :  Directory  :  Files to download  :  Links for developers  :  Privacy policy  :  Web Resources  :  Polls  
    MacOSX Guru Site Information, tips and tricks, FAQ for Mac OS X developers    
 Welcome to MacOSX Guru Site
 Saturday, March 23 2019 @ 10:34 PM UTC

A cheap way to generate a graphic of web site pages relations…

RubyDo you need a free tool to generate a graphical representation of a web site ?

Here is a Ruby script that generates the tree of the pages of a web site in OPML, XOXO and DOT formats.
It also saves its work in YAML format so do don't need to scan the same site several times, if you just want to produce another representation of the site. Feel free to adapt to your needs.
By using the DOT output with GraphViz, you can generate any graphic you like.


Usage: httptree.rb [options] (url ...  | -i file)
    -d, --debug                      turn on debugging
    -p, --pools [INTEGER]            number of thread to use
    -v, --verbose                    turn on verbose mode
    -t, --title [STRING]             document title
    -n, --ndeep [INTEGER]            number of levels to walk thru URLs (default: 999999)
    -r, --nredirection [INTEGER]     max number of redirection to follow when fetching URLs (default: 10)
    -f, --format [STRING]            output format [OPML | XOXO | DOT] (default OPML)
    -o, --output [STRING]            output data structure to YAML format
    -i, --input [STRING]             input file in YAML format from previous execution with -o option
    -c, --colors [STRING]            string is "mime=color;..." or @filename (YAML format)
    -C, --dumpcolors [STRING]        dump colors to filename (YAML format)
    -e, --excluded [STRING]          string is "extension=mime;..." or @filename (YAML format)
    -E, --dumpextenstions [STRING]   dump excluded extensions to filename (YAML format)
    -S, --separate                   outputs one DOT layer per depth level found (usefull only if option -o DOT is also selected)
    -D, --dumpdefaults [STRING]      dump defaults do filename and quits (any option before -D is taken into account)
    -I, --usedefaults [STRING]       read defaults from file
    -h, --help                       Show help and quits

List of require's :

require 'net/http'
require 'thread'
require 'optparse'
require 'rexml/document'
require 'rexml/streamlistener'
require 'set'
require 'rubygems'
require 'rubyful_soup'
require 'logger'
require 'yaml'

What's Related

Story Options

A cheap way to generate a graphic of web site pages relations… | 0 comments | Create New Account
The following comments are owned by whomever posted them. This site is not responsible for what they say.
 Copyright © 2019 MacOSX Guru Site
 All trademarks and copyrights on this page are owned by their respective owners.
Powered By Geeklog 
Created this page in 0.06 seconds