烧瓶相对路径

时间:2019-12-15 12:38:36

标签: python selenium flask http-status-code-404

我正在使用python工作 我正在用硒分析来自不同网上商店的代码,并将它们打印到1个用烧瓶制成的概述页面中

    webshopresultaten = resultatenlijstwebshop.get_attribute('outerHTML')#getting the HTML code from the by selenium recognized part of the suppliers website

    print("<h1>webshop resultaten</h1>" + webshopresultaten)
    liresultaten = "<h1>webshop resultaten</h1>" + webshopsresultaten  #adding a title to this list
    return render_template("interface.html", liresultaten=liresultaten) #using flask to show the HTML snippet from suppliers page on my page

因此,webshopresultaten变量为我提供了供应商网站的摘要,我想将其打印在带有flask的本地托管网页上 一切正常,唯一的问题是供应商网站的HTML代码段中包含以下内容

href="ajaxElement/imgProtect_2y10WMa3vtEp7msffVjVRPy4Of44HBmRSGVcDrf7Z4A9JMEoGSZM8li.jpg"

我如何使此链接引用供应商的域名,以便该图片在我的本地主机页面中可见

0 个答案:

没有答案