V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
daqing

导出PB2数据有好的方法吗?除了用GAE官方的appcfg.py脚本。

  •  
  •   daqing · Feb 2, 2012 · 7277 views
    This topic created in 5212 days ago, the information mentioned may be changed or developed.
    4 replies    1970-01-01 08:00:00 +08:00
    Livid
        1
    Livid  
    MOD
    PRO
       Feb 9, 2012
    http://code.google.com/intl/zh-CN/appengine/docs/python/tools/uploadingdata.html

    导出为 XML 的话,会更容易处理。

    这方面我也还在研究中。
    daqing
        2
    daqing  
    OP
       Feb 9, 2012
    要是在网站后台,能够打包下载所有数据就好了。
    daqing
        3
    daqing  
    OP
       Feb 13, 2012
    @Livid 我在试图下载数据时,不管翻不翻墙,总是出现以下错误:

    URLError: <urlopen error [Errno 54] Connection reset by peer>
    [INFO ] Authentication Failed

    搜索了一下,也没找到办法。我的下载命令是:

    appcfg.py download_data --application='s~foobar' --url=http://foobar.appspot.com/remote_api --filename=data_backup_archive.xml
    daqing
        4
    daqing  
    OP
       Feb 13, 2012
    我在国外的VPS上面执行上面的命令,终于成功了。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3261 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 13:58 · PVG 21:58 · LAX 06:58 · JFK 09:58
    ♥ Do have faith in what you're doing.