Did I find the right examples for you? yes no

All Samples(4)  |  Call(4)  |  Derive(0)  |  Import(0)

        def load_resource(subdomain, path):
    with open(os.path.join(BASE_DIR, '_api', subdomain,
            os.path.normpath(path) + '.json')) as f:
        return json.loads(f.read())
        


src/a/n/another-springnote-HEAD/src/convert_mediawiki.py   another-springnote(Download)
    util.makedirs(SAVE_ROOT, exist_ok=True)
 
    pages = util.load_resource(subdomain, 'pages')
    print("Converting XHTML to MediaWiki...")
    output_paths = [
        fp = output_fp[0] if util.is_public(subdomain, id_) else output_fp[1]
 
        page = util.load_resource(subdomain, 'pages/{}'.format(id_))
        title = page['page']['title']
        new_title = title
        new_title = new_title_
        titles.add(new_title)
        revisions_data = util.load_resource(subdomain,
                'pages/{}/revisions'.format(id_))
        if revisions_data:
            timestamp = datetime.datetime.utcfromtimestamp(timestamp)\
                    .strftime('%Y-%m-%dT%H:%M:%SZ')
            revision_data = util.load_resource(subdomain,
                'pages/{}/revisions/{}'.format(
                    id_, revision['revision']['identifier']))