推荐学习书目
› Learn Python the Hard Way
Python Sites
› PyPI - Python Package Index
› http://diveintopython.org/toc/index.html
› Pocoo
值得关注的项目
› PyPy
› Celery
› Jinja2
› Read the Docs
› gevent
› pyenv
› virtualenv
› Stackless Python
› Beautiful Soup
› 结巴中文分词
› Green Unicorn
› Sentry
› Shovel
› Pyflakes
› pytest
Python 编程
› pep8 Checker
Styles
› PEP 8
› Google Python Style Guide
› Code Style from The Hitchhiker's Guide
imkh
V2EX  ›  Python

一个爬虫分析问题

  •  
  •   imkh · Mar 8, 2024 · 3883 views
    This topic created in 934 days ago, the information mentioned may be changed or developed.

    有没有大佬知道打开这个网页 https://coincodex.com/historical-data/crypto/?date=2024-03-01T09:10:00Z , 里面有个 Request URL: https://coincodex.com/api/coincodex/get_historical_snapshot/2024-03-01%2009:10/0/100?t=56996304

    其中 t 的生成规则是怎么样的?

    或者怎么样可以模拟打开 https://coincodex.com/historical-data/crypto/?date=2024-03-01T09:10:00Z ,获取里面的 Request URL ?

    2 replies  •  2024-04-15 17:14:26 +08:00
    wang9571
        1
    wang9571  
       Mar 8, 2024   ❤️ 1
    第一个链接 html 里有
    ```static gen_t(g, x=0) {
    return Math.round((Date.now() + x) / g)
    }```

    你说的那个请求,t=timestamp/3000
    lenglj
        2
    lenglj  
       Apr 15, 2024
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2831 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 14:38 · PVG 22:38 · LAX 07:38 · JFK 10:38
    ♥ Do have faith in what you're doing.