› GeoJSON
yangwcool

请教一个抓取卫星图的问题

  •  
  •   yangwcool · Aug 6, 2021 · 2736 views
    This topic created in 1919 days ago, the information mentioned may be changed or developed.

    我想从这个网站https://shaanxi.tianditu.gov.cn/zhfw/抓取区域卫星图。

    通过浏览器 F12 分析得到瓦片地址:

    https://shaanxi.tianditu.gov.cn/ServiceSystem/YouMap/rest/service/SxImgMap/token/TileServer/tile/15/9571/52348

    通过浏览器直接访问这个地址提示服务未获授权,即用户和服务没有关联

    这是什么原理。瓦片地址里也没有 token 之类的信息啊。

    小白一只,各位不要嘲笑。

    4 replies  •  2021-08-06 13:41:30 +08:00
    manhere
    manhere
    Aug 6, 2021❤️1
    1
    http referer?
    3dwelcome
    3dwelcome
    Aug 6, 2021 via Android
    2
    试了一下,是非常简单的 Referer 头参数校验。
    yangwcool
    yangwcool
    OP
    Aug 6, 2021
    3
    @3dwelcome
    @manhere
    谢谢。虽然不是很懂,我去搜一下解决方法。
    catcn
    catcn
    Aug 6, 2021
    4
    最好存到 sqlite 或者别的数据库中。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1920 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 07:57 · PVG 15:57 · LAX 23:57 · JFK 02:57
    ♥ Do have faith in what you're doing.