For the complete documentation index, see llms.txt. This page is also available as Markdown.

URL

通过提供直接 URL 抓取任何 Mercado Libre 页面。

你可以通过在我们的服务中使用 mercadolibre source。API 会返回你想要的任何 Mercado Libre 页面 的 HTML。

请求示例

下面的示例说明了你如何获取 Mercado Libre 页面。

curl 'https://realtime.oxylabs.io/v1/queries' \
--user 'USERNAME:PASSWORD' \
-H 'Content-Type: application/json' \
-d '{
        "source": "mercadolibre",
        "url": "https://listado.mercadolibre.com.ar/iphone"
    }'
import requests
from pprint import pprint


# 结构化负载。
payload = {
    'source': 'mercadolibre',
    'url': 'https://listado.mercadolibre.com.ar/iphone'
}

# 获取响应。
response = requests.request(
    'POST',
    'https://realtime.oxylabs.io/v1/queries',
    auth=('USERNAME', 'PASSWORD'),
    json=payload
)

# 不返回作业状态和结果 URL 的响应,而是返回
# 包含结果的 JSON 响应。
pprint(response.json())

我们使用同步的 Realtime 集成方法作为示例。如果您想使用 Proxy Endpoint 或异步 Push-Pull 集成,请参阅 集成方法 部分。

请求参数值

通用

参数
说明
默认值

source

设置爬虫。

mercadolibre

url

指向任何页面的直接 URL(链接)。

-

render

设置为 html. 更多信息.

-

callback_url

您的回调端点 URL。 更多信息

-

user_agent_type

设备类型和浏览器。完整列表可在 这里.

desktop

- 必填参数

最后更新于

这有帮助吗?