我是靠谱客的博主 笨笨铃铛,这篇文章主要介绍python html,使用Python格式化HTML代码,现在分享给大家,希望可以做个参考。

I have a list of URLs in a column in a CSV-file. I would like to use Python to go through all the URLs, download a specific part of the HTML code from the URL and save it to the next column.

For example:

From this URL I would like to extract this div and write it to the next column.

VM−2N ist ein Hochleistungs−Verteilverstärker für Composite− oder SDI−Videosignale und unsymmetrisches Stereo−Audio. Das Eingangssignal wird entkoppelt und isoliert, anschließend wird das Signal an zwei identische Ausgänge verteilt.

  • Hohe Bandbreite — 400 MHz (–3 dB).

  • Desktop–Grösse — Kompakte Bauform, zwei Geräte können mithilfe des optionalen Rackadapters RK–1 in einem 19 Zoll Rack auf 1 HE nebeneinander montiert werden.

I have this code, the HTML code is saved in the variable html:<

最后

以上就是笨笨铃铛最近收集整理的关于python html,使用Python格式化HTML代码的全部内容,更多相关python内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(50)

评论列表共有 0 条评论

立即
投稿
返回
顶部