获取 HTTP 状态 401 - ebayclassifeids 的未经授权的用户错误 Api

getting HTTP Status 401 - unauthorized user error for ebayclassifeids Api

我必须使用 ebayclassifieds Api 我正在提出这个要求: curl --digest -u {用户名}:{密码} http://webapi.ebayclassifieds.com/webapi/categories

但我收到错误

<html><head><title>Apache Tomcat/7.0.26 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 401 - </h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>This request requires HTTP authentication ().</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/7.0.26</h3></body></html>

提前致谢

eBay 分类广告 (kijiji) 现已关闭 API。因此,在发布本文时,您将无法利用他们的服务。

来到 Craigslit,他们也没有 public API。 Programmableweb 最近报道了同样的情况(http://blog.programmableweb.com/...)。

然而,抓取 craigslist 没什么大不了的(感谢他们的简单UI):)。如果您只是想尝试一下,请执行此操作,就我个人而言,我不喜欢抓取错误。

最后,请关注 Programmableweb.com 以获取 API 上的任何更新。这是最好的地方。