Home  >  Q&A  >  body text

javascript - jsonpcallback 的一串数字是如何生成的?

今天用 python 写爬虫碰到一个网站:
http://www.nmlottery.com.cn/ssc/index.shtml

目标是抓取开奖结果,实际的数据是js 加载的,链接是大概是:http://kaijiang.zhcw.com/kJCZInfo.jsp?jsonpcallback=jQuery17208297070672462461_1491991295320&czId=462&issueNum=1&formatType=jsonMap&_=1491991297101

这串 url 中其他的数据都能明白,就是这串jQuery17208297070672462461_1491991295320的数据不知道是如何生成的,导致没办法直接请求这个接口

所以问题就是如何用 python 模拟生成这串数据

黄舟黄舟2711 days ago547

reply all(1)I'll reply

  • PHP中文网

    PHP中文网2017-04-18 10:35:50

    You can fill in anything here. jQuery uses random numbers to prevent conflicts with existing names

    reply
    0
  • Cancelreply