有完整的 HTML/Javascript 在线搜索引擎吗?
我正在寻找一个搜索引擎,它还可以索引 html 和 javascript 代码,而不仅仅是渲染。
用例:在我工作的约 80000 个页面的网站中,某些特定的硬编码 javascript 参数被使用。我需要找到具有特定参数的页面在哪里。
非常感谢。
编辑:上下文:我无法直接访问代码。有问题的参数用于配置一些信息以发送到 Adobe 的 Omniture(我在其中得到了奇怪的点击)。
编辑:也许没有这样的搜索引擎。我会保持这个问题开放......
I'm looking for a search engine that would also index the html and javascript code, and not only the rendering.
Use case: Some specific hardcoded javascript parameter is used somewhere in the ~80000 pages site I work on. I need to find where is the page with a specific parameter.
Much appreciated.
EDIT: Context: I don't have direct access to the code. The parameter in question is used to configure some info to send to Adobe's Omniture (into which I get weird hits).
EDIT: Maybe there is no such search engine. I'll keep the question open...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知,没有一个在线搜索引擎可以做到这一点。您可以找到的最接近的工具是 Google 代码搜索,它对公共源代码进行索引。如果您将代码作为公共存储库托管在 github、Google 代码、sourceforge > 等。
如果您正在开发一个私人项目,那么您应该有权访问源代码,不是吗?如果是这样,那么正如 @Spiny Norman 提到的,您可以简单地使用
grep
。对于大型源库,您最好使用 ack。
如果您的代码位于 SVN/Git 中,请查找 svnquery 或 git grep。
As far as I know, there isn't an online search engine that would do that. The closest you can get to that would be Google Code Search which indexes public source code. You might be able to make use of it if you host your code as a public repository on services such as github, google code, sourceforge, etc.
If it is a private project you're working on, then you should have access to the source code, no? If so, then as @Spiny Norman mentioned, you can simply use
grep
.For a large source base, you might be better off using ack.
If you have your code in SVN/Git, look up svnquery or git grep.