| 限定符和类型 | 方法和说明 |
|---|---|
BingNewsRequest |
BingNewsRequest.setCc(String cc)
设置该参数定义了爬取时可以指定搜索结果按照国家/地区用户的习惯展示。
|
BingNewsRequest |
BingNewsRequest.setCount(String count)
设置该参数控制每页的结果数量。
|
BingNewsRequest |
BingNewsRequest.setFirst(String first)
设置该参数控制自然结果的偏移量。
|
BingNewsRequest |
BingNewsRequest.setJson(String json)
设置该参数定义采集结果的输出格式;可选择 JSON、HTML(支持下载)格式,默认为 JSON;1 返回 JSON,2 返回 JSON+HTML,3 返回 HTML,4 返回 Light JSON。
|
BingNewsRequest |
BingNewsRequest.setMkt(String mkt)
设置参数定义了爬取时搜索结果的界面显示语言。
|
BingNewsRequest |
BingNewsRequest.setNoCache(String noCache)
设置默认情况下,5 分钟内缓存相同参数的搜索结果;将 no_cache 设为 true 可跳过缓存,设为 false(默认)则使用缓存结果;缓存搜索免费,且不计入搜索统计。
|
BingNewsRequest |
BingNewsRequest.setQ(String q)
设置该参数定义爬取时的搜索结果,默认值为 Pizza。
|
BingNewsRequest |
BingNewsRequest.setQft(String qft)
设置该参数定义按日期排序的结果。
|
BingNewsRequest |
BingNewsRequest.setSafeSearch(String safeSearch)
设置该参数定义成人内容的过滤级别。
|
| 限定符和类型 | 方法和说明 |
|---|---|
RawResponse |
BingService.news(BingNewsRequest request)
当用户需要通过 Bing News 查询新闻搜索结果,或按关键词、地区、语言、日期排序、安全过滤等条件获取新闻内容时触发。
|
Copyright © 2026. All rights reserved.