将可视化站点地图与 Web 应用程序链接 [英] Linking a visual sitemap with a web application

查看:35
本文介绍了将可视化站点地图与 Web 应用程序链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我花了很多时间浏览网页以找到解决问题的方法,但无济于事.

I have spent a LOT of time browsing the web to find a solution to my problem with no avail.

我有一个包含大量页面的 Web 应用程序.许多页面都有各自的子页面,其中一些子页面还有其他子页面,依此类推.Web 应用程序只是 UI,这意味着它是 HTML 模型.

I have a web application with lots of pages. Many of the pages have their respective child pages, and some of these childs also have other childs, and so on. The web application is just the UI which means that it is the HTML mockups.

我需要的是某种方式(显然是在应用程序的帮助下)如何将包含所有这些 HTML 文件的文件夹与可视化站点地图连接起来.我还需要在此文件夹中创建另一个 HTML 页面时,站点地图将知道并动态修改此页面.如果页面被删除等情况也是如此...

What I need is some way (obviously with the help of an application) how can I connect the folder which has all these HTML files with a visual Sitemap. I also need that when I create another HTML page in this folder, the sitemap will know and amend this page dyanamically. The same goes if a page is deleted etc...

我尝试使用应用程序 PowerMapper 但由于我的应用程序有很多连接到 DIV 的 javascript 链接,SPAN 等,而不是锚点,PowerMapper 不会将它们识别为链接,因此在创建站点地图时,有很多损坏的链接,并且 PowerMapper 不允许您更改这些链接.它只是读取网站/网络应用程序并抓取以创建可视化站点地图.

I tried using the application PowerMapper but since my application has lots of javascript links which are connected to DIVs, SPANs and so on, instead of anchors, PowerMapper does not recognize these as links and therefore when the sitemap is created, there are lots of broken links, and PowerMapper does not allow you to change these. It just reads a website/web application and crawls is to create the visual sitemap.

请,如果有人知道一个应用程序,它可以让您将站点地图连接到包含此类 HTML 模型的文件夹,反之亦然,并且您可以完全控制它,请告诉我,因为我完全迷路了.

Please, if anyone know about an application which lets you connect a sitemap to a folder which contains such HTML mockups and vice versa and you have total control over it, kindly let me know as I am totally lost.

非常感谢!

推荐答案

您可以使用 Selenium 编写脚本来抓取链接.也许使用 http://selenium.rubyforge.org/ 和一个简单的 ruby​​ 脚本.Selenium 是 JS 感知的,只需遍历每个页面的 DOM 并单击每个节点即可.

You could write a script using Selenium to spider the links. Maybe use http://selenium.rubyforge.org/ and a simple ruby script. Selenium is JS aware, just walk the DOM of each page and click each node.

您也可以使用 watir 和 firewatir ,http://watir.com/

You can also use watir, and firewatir , http://watir.com/

这篇关于将可视化站点地图与 Web 应用程序链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆