V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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 · 50 天前 · 908 次点击
    这是一个创建于 50 天前的主题,其中的信息可能已经有所发展或是发生改变。

    有没有大佬知道打开这个网页 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 条回复    2024-04-15 17:14:26 +08:00
    wang9571
        1
    wang9571  
       50 天前   ❤️ 1
    第一个链接 html 里有
    ```static gen_t(g, x=0) {
    return Math.round((Date.now() + x) / g)
    }```

    你说的那个请求,t=timestamp/3000
    lenglj
        2
    lenglj  
       12 天前
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1666 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 116ms · UTC 16:36 · PVG 00:36 · LAX 09:36 · JFK 12:36
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.