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 · 53 天前 · 1335 次点击
    这是一个创建于 53 天前的主题,其中的信息可能已经有所发展或是发生改变。

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