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内容请搜索靠谱客的其他文章。
发表评论 取消回复