如何在xblock上嵌入网站?

2024-05-23 20:36:56 发布

您现在位置:Python中文网/ 问答频道 /正文

我是新来的,在xblock上显示网站内容的项目。我想显示这个网站的内容:decheck.it/codecheck/files?repo=bj4cc&problem=ch02/c02_exp_2_102

网站的大多数链接通常都有"codecheck.it/codecheck/files?repo="相似之处。我想知道是否有人知道我应该怎么做,以显示网站的内容? 我在网上看到一个例子vimeo.com网站但我不确定网站是否也一样:

 if hostname == 'vimeo.com':
            oembed_url = 'http://vimeo.com/api/oembed.json'

链接来自本教程here

谢谢


Tags: 项目com内容网站链接repoitfiles