如何在Excel表格中获取Google页面排名和搜索次数?
我在一列中有一个链接,基于它,我想要
- 第 2 列中的 Google 搜索数量
- 第 3 列中第一个结果的页面排名
我知道这是可以做到的,因为我看到一个朋友在 Excel 中直接提取 google 搜索结果。 如果有人知道,请分享我如何做到这一点。
I have a link in one column and, based on it, I want
- Number of Google searches in column 2
- Page rank of first result in column 3
I know this can be done, as I saw a friend pulling google search result right in Excel. If anyone knows, please share how I could do that.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
如果我正确地解释了您的问题,那么您必须执行的任务之一是
如何以编程方式获取 URL 列表的 Google 网页排名?
您可以在这篇 CodeProject 文章中找到执行此操作的代码:
以编程方式请求 Google 的 Pagerank
关于 Excel 部分:这取决于哪种编程框架或您可以使用的平台。 您可以使用 Microsoft Visual Studio Tools for Office 创建 Excel 的 .NET 扩展。
If I correctly interpret your question, one of the tasks you had to do is
How do I get programmatically the Google page rank for a list of URLs?
You can find the code to do this in this CodeProject article:
Request Google´s Pagerank programmatically
Regarding the Excel part: it depends which programming framework or platforms you could use. You could use to create a .NET extension for Excel using the Microsoft Visual Studio Tools for Office.
从 Excel 中,有数据 -> 获取外部数据 -> 新 Web 查询。 这是你想要的吗?
From Excel there is Data->Get External Data->New Web Query. Is this what you want?
您有两种选择,不幸的是这两种选择都没有很好的记录。
如果您熟悉 C/C++,则可以编写一个名为“XLL”的特殊 DLL,您可以在 Excel 运行时调用它。 有一些稀疏的文档可用。 请注意,这个东西使用起来并不是很有趣。
如果您更喜欢 .NET,此处列出了整个 Office 套件的绑定< /a> 允许您编写可从 Office 调用的基于 COM 的方法。 它旨在实现自动化,但您可以编写所需的任何托管代码并让 Excel 调用它。
还有刚才Remou建议的; 我实际上没有 Excel 副本来测试这一点,但这可能是最简单的选择。
You have two options, both of which are unfortunately poorly documented.
If you are comfortable in C/C++, you can write a special DLL called an "XLL" that you can call during Excel runtime. There is some sparse documentation available. Note that this stuff isn't very fun to use.
If you prefer .NET, there is a binding for the entire Office suite outlined here that allows you to write COM-based methods that you can call from Office. It is intended for automation, but you can write any managed code you want and have Excel call into it.
There is also what Remou just suggested; I don't actually own a copy of Excel to test that out, but it may be the easiest option.
我所说的链接是指关键字而不是网址。 我想将关键字放入一个单元格中,并在相邻单元格中提取搜索次数和页面排名。
我尝试在 Excel 中对网络查询执行相同的操作,但我只能达到搜索次数。 这也不在正确的单元格中(试图弄清楚)。 但我不知道如何获得页面排名。
我不太懂技术,无法为自己编写活页夹或插件。 虽然我正在检查 splattne 的链接。 请更多地关注它。 如果我尝试做这个会很费时间吗?
问候
Thinkjayant
By link i meant keywords and not URL. I want to put a keyword in one cell and pull number of searches and page rank in adjacent cells.
I tried doing the same with web query in excel but i can only reach till the number of searches. that too not in the proper cell (trying to figure out). But i have no clue about how to get the pageranks.
I am not that tech savvy to code a binder or plugin for myself. Although i am checking the link by splattne. Please focus more light on it. Is it gonna be time consuming if i try to make this one..?
Regards
Thinkjayant
GitHub 上有一些不错的插件(支持多种语言):
http://github.com/search?langOverride=&language=&q=pagerank&repo=&start_value=1&type =存储库&x=0&y=0
There are some nice plugins for this (in various languages) on GitHub:
http://github.com/search?langOverride=&language=&q=pagerank&repo=&start_value=1&type=Repositories&x=0&y=0
我的 Excel 插件“SeoTools”中有 PR 检查器功能。
http://nielsbosma.se/projects/seotools/
I have a PR checker functions in my Excel plugin "SeoTools".
http://nielsbosma.se/projects/seotools/