V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
GeoJSON
yangwcool

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

  •  
  •   yangwcool · Aug 6, 2021 · 2204 views
    This topic created in 1724 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
        1
    manhere  
       Aug 6, 2021   ❤️ 1
    http referer?
    3dwelcome
        2
    3dwelcome  
       Aug 6, 2021 via Android
    试了一下,是非常简单的 Referer 头参数校验。
    yangwcool
        3
    yangwcool  
    OP
       Aug 6, 2021
    @3dwelcome
    @manhere
    谢谢。虽然不是很懂,我去搜一下解决方法。
    catcn
        4
    catcn  
       Aug 6, 2021
    最好存到 sqlite 或者别的数据库中。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4495 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 53ms · UTC 04:08 · PVG 12:08 · LAX 21:08 · JFK 00:08
    ♥ Do have faith in what you're doing.