如何解析具有恒定URL的网站数据 [英] how to parse data of website with constant URL

查看:65
本文介绍了如何解析具有恒定URL的网站数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想这样解析一个网站的数据:(该网站是一个词典-搜索网站)

I want to parse data of a website like this: (website is a dictionary - search website)

当我在网站上搜索时,网站不会刷新,不会显示结果,并且URL不会更改.

When I search on website, the website does not refresh, the result will be shown, and the URL does not change.

现在我想知道是否可以使用或cURL或其他任何方式进行解析该网站?

Now I want to know is it possible to using this or cURL or anything else for parsing the website ?

推荐答案

有两个选项:

  1. 检查在控制台中触发的ajax调用,并尝试使用正确的方法和数据来获取这些url.
  2. 禁用javascript并查看它是否仍然有效.如果是这样,您将看到需要获得的东西.

但是,如果该站点不希望您获取数据,则可以阻止该数据和/或在您提出过多请求时阻止您.

However, if the site does not want you to get the data, they can prevent it and / or block you if you make too many requests.

这篇关于如何解析具有恒定URL的网站数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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