【发布时间】:2019-11-01 08:03:50
【问题描述】:
如果您访问https://www.aucklandcouncil.govt.nz/property-rates-valuations/pages/find-property-rates-valuation.aspx,您将看到搜索框。
我希望输入“905/8 Ronayne St”,输出“12343197398”。
我正在使用 R 并尝试过这样但没有用..
post <- POST("https://www.aucklandcouncil.govt.nz/_vti_bin/ACWeb/ACservices.svc/GetMatchingPropertyAddresses",
body = list('ResultCount' = "10", 'SearchText' = "905/8 Ronayne St", 'RateKeyRequired' = "false"))
content(post, "text")
你能帮帮我吗?那将不胜感激:)
【问题讨论】:
-
即使更改 SearchText,POST 调用也会返回 400。 POST 调用中的某些内容违反了请求参数,并且在没有查看任何文档的情况下很难确定问题所在。
标签: r api post web-scraping httr