V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
daqing
V2EX  ›  Project Babel

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

  •  
  •   daqing · 2012-02-02 10:49:08 +08:00 · 4849 次点击
    这是一个创建于 4460 天前的主题,其中的信息可能已经有所发展或是发生改变。
    4 条回复    1970-01-01 08:00:00 +08:00
    Livid
        1
    Livid  
    MOD
       2012-02-09 17:39:39 +08:00
    http://code.google.com/intl/zh-CN/appengine/docs/python/tools/uploadingdata.html

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

    这方面我也还在研究中。
    daqing
        2
    daqing  
    OP
       2012-02-09 17:45:12 +08:00
    要是在网站后台,能够打包下载所有数据就好了。
    daqing
        3
    daqing  
    OP
       2012-02-13 09:34:44 +08:00
    @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
       2012-02-13 10:12:45 +08:00
    我在国外的VPS上面执行上面的命令,终于成功了。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1117 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 35ms · UTC 18:28 · PVG 02:28 · LAX 11:28 · JFK 14:28
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.