V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
GeoJSON
yangwcool
V2EX  ›  地理信息系统

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

  •  
  •   yangwcool · 2021-08-06 13:12:04 +08:00 · 1018 次点击
    这是一个创建于 985 天前的主题,其中的信息可能已经有所发展或是发生改变。

    我想从这个网站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 条回复    2021-08-06 13:41:30 +08:00
    manhere
        1
    manhere  
       2021-08-06 13:16:57 +08:00   ❤️ 1
    http referer?
    3dwelcome
        2
    3dwelcome  
       2021-08-06 13:18:54 +08:00 via Android
    试了一下,是非常简单的 Referer 头参数校验。
    yangwcool
        3
    yangwcool  
    OP
       2021-08-06 13:35:35 +08:00
    @3dwelcome
    @manhere
    谢谢。虽然不是很懂,我去搜一下解决方法。
    catcn
        4
    catcn  
       2021-08-06 13:41:30 +08:00
    最好存到 sqlite 或者别的数据库中。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5507 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 01:28 · PVG 09:28 · LAX 18:28 · JFK 21:28
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.