yinzhong
V2EX  ›  问与答

技术:关于如何得到别人的数据,封装别人的接口的方法

  •  
  •   yinzhong · Jun 25, 2019 · 2143 views
    This topic created in 2552 days ago, the information mentioned may be changed or developed.
    目前需求是要把别人接口封装,就是别人只给一个 url,返回一个数据,我把这个数据封装起来,再形成一个接口,当然要封装很多,我怎么拿到别人的接口的数据,别人不会在自己的系统做任何改动,我有且仅有接口,目前我想到的是 httpclient,这是和爬虫的技术类似,有别的方法吗?多谢
    还有,我再封装一次会不会出现系统变慢之类的问题?请各位指教!多谢了
    2 replies    2019-06-25 10:56:16 +08:00
    pws22
        1
    pws22  
       Jun 25, 2019   ❤️ 1
    慢不慢取决与对方的接口数据慢不慢,如果因为是对方接口慢,可以想办法离线获取,
    yinzhong
        2
    yinzhong  
    OP
       Jun 25, 2019
    @pws22 多谢,那速度应该没事
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2486 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 09:36 · PVG 17:36 · LAX 02:36 · JFK 05:36
    ♥ Do have faith in what you're doing.