解析 Facebook 页面查询
我想知道是否有人知道一种解析通过 Facebook 搜索栏进行查询的结果的方法。我无法绕过最后的“查看更多结果”按钮,我想找到一种获取所有搜索结果的方法。
我想 DOM 解析器不是解决方案,因为它只会扫描页面上可用的结果:
先谢谢您!
吉列尔莫
I was wondering if someone knew a way of parsing the results of a query done through the search bar in Facebook. I don't manage to get around that "see more reults" button at the end, and I would like to find a way of getting all the results of the search.
I guess a DOM parser is not the solution, since it will only scan the results available on the page:
Thank you in advance!
Guillermo
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
问题是,单击“查看更多结果”后显示的所有结果都是通过 AJAX 动态加载的。那么,您的目标将是通过手动调用 Facebook 调用的 URL 并从中获取结果来复制该功能(前提是 Facebook 不使用唯一令牌来验证 URL 中更多结果的加载)。
我建议您查看是否可以找到 Facebook 用于加载更多搜索结果的 URL。
The problem is, all the results that show after "see more results" is clicked is loaded dynamically via AJAX. Your goal, then, will be to replicate that functionality by manually calling the URL that Facebook calls and getting the results from that (provided that Facebook doesn't use unique tokens to validate the loading of more results in the URL).
I would suggest that you see if you can find the URL that Facebook uses to load more search results.