python新手求问怎么把txt中的链接传到docker打开的一个api中

python新人,刚从twitter爬了一些链接保存在txt中,怎么把这些链接传到一个docker打开的api中,这个api叫MemoGator,github网站在这里,https://github.com/oduwsdl/memgator. 打开Docker网站是https://www.katacoda.com/courses/docker/playground![图片说明](https://img-ask.csdn.net/upload/202002/18/1582001263_271096.png)

写了几行代码但是跑不出来

import requests

host = 'https://www.katacoda.com/courses/docker/playground'

with open('C:\Users\52682\Downloads\Extracted 1000links.txt', 'r') as f:

for line in f:

response = requests.get(host+"/timemap/link/"+line)

print(response)

https://blog.csdn.net/weixin_34351321/article/details/85976171

你的问题描述不清晰,没法具体回答但有一点提醒的是:主机和容器是可以直接通信的。