[generating a diagram - flowchart of a website] -
generating a diagram - flowchart of a website
Discuss generating a diagram - flowchart of a website
Posted by: Larry
Does anyone of a program or tool that will automatically generate or create a chart of a website?
Something that will follow all the links on a site and some how display the link and/or file it links to.
Thanks
Posted by: yoran
I know how to make something like that in perl, but what do you want to do with a program like that...?
Posted by: Larry
Hi Yoran...
Do you have something already built that can do that?
I want it for "web masters" and the like. If you want to visually see a website, how else can you do it besides manually writing it out?
I'm looking for an easier/faster way
:)
Posted by: yoran
nope, I haven't make something like that before, and I don't know where you can learn it... (I found it out by my self...)
but I can give you a little documentation about getting pages with HTTP.
the only thing you have to do is parsing the HTML and it's done!
[little simple example about parsing html]
[CODE]
$html =~ /<a href=(.+) target=(.+)>(.+)<\/a>/i;
$link = $1; $text = $3;
[/CODE]
Then you will get ONE link of the page, but you must use the foreach-statement to get more!
Posted by: Psycluded
Java/JSP can do this VERY easily using the built-in Document Object Model, especially the latter if you have Tomcat or another JSP app server running on your webserver.
[url=http://java.sun.com/webservices/docs/1.2/tutorial/doc/index.html]Check this out[/url]. Chapter 8 is about the DOM. You can write a fairly simple JSP page that will traverse through your whole site, link by link, and catalogue where each page goes, etc. That is, if I understand what you're asking...
Posted by: yoran
yea, and JAVA or JSP is VERY slow!!!!!