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
zhlenmao
V2EX  ?  Python

淘宝开放平台,这个免费的 api 的示例里面的 url,port,appkey,secret 怎么填写?有用过的嘛?

  •  
  •   zhlenmao · 67 天前 · 1361 次点击
    这是一个创建于 67 天前的主题,其中的信息可能已经有所发展或是发生改变。

    腾讯云最新优惠活动来了:云产品限时1折,云服务器低至88元/年 ,点击这里立即抢购:9i0i.cn/qcloud,更有2860元代金券免费领取,付款直接抵现金用,点击这里立即领取:9i0i.cn/qcloudquan

    (福利推荐:你还在原价购买阿里云服务器?现在阿里云0.8折限时抢购活动来啦!4核8G企业云服务器仅2998元/3年,立即抢购>>>:9i0i.cn/aliyun

    https://developer.alibaba.com/docs/api.htm?spm=a219a.7395905.0.0.724f75feUnBSGp&apiId=40549

    taobao.auction.gov.data.realtime.get (获取实时(今日)统计数据)

    -- coding: utf-8 --

    import top.api

    req=top.api.AuctionGovDataRealtimeGetRequest(url,port) req.set_app_info(top.appinfo(appkey,secret))

    req.court_name="宁波北仑区法院" req.is_include_sub=false try: resp= req.getResponse() print(resp) except Exception,e: print(e)

    谢谢指教!:)

    第 1 条附言  ·  67 天前
    就是想获取这上面的相关的实时的法拍数据,这个 API 是最简单的方法吧?比阿里的“反爬”强吧
    9 条回复  ?  2024-03-06 20:44:17 +08:00
    chaoschick
        1
    chaoschick  
       67 天前 via Android
    先看一下 如何获得此 api
    InternetExplorer
        2
    InternetExplorer  
       67 天前
    免费也就是调用免费,但是获得使用权可没说免费
    markgor
        3
    markgor  
       67 天前
    申請了這個 API ,會有 appkey,secret 提供;
    至於 url,port ,這個看文檔基礎介紹,一般會有線上環境和沙盒環境下 url 和 port
    zsdroid
        4
    zsdroid  
       67 天前
    免费不等于不需要注册
    zhlenmao
        5
    zhlenmao  
    OP
       67 天前
    @chaoschick 谢谢!
    zhlenmao
        6
    zhlenmao  
    OP
       67 天前
    @InternetExplorer 嘿嘿,我想多了
    zhlenmao
        7
    zhlenmao  
    OP
       67 天前
    @markgor :)我想着有啥能直接调用了 ^-^
    markgor
        8
    markgor  
       66 天前
    @zhlenmao 免費不等於開放,據我了解有些接口就算免費但是要申請.......
    zhlenmao
        9
    zhlenmao  
    OP
       66 天前
    @markgor 谢谢,大概明白了 :) 。我去琢磨、学习下如何弄
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2687 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 05:16 · PVG 13:16 · LAX 22:16 · JFK 01:16
    Developed with CodeLauncher
    ? Do have faith in what you're doing.


    http://www.vxiaotou.com