当前位置: 首页 > news >正文

郑州专业的网站建设百度知道推广软件

郑州专业的网站建设,百度知道推广软件,网站排名top排行榜,帮别人建网站做诈骗的要判刑吗csdn上有好用的内容,我们怎么将它们加到 onenote 里吃灰呢。 一、创建 新html create_html.py import sysdef create_html_file(filename):# 检查是否提供了文件名if not filename:print("请提供HTML文件名")return# 创建HTML内容html_content f"…

csdn上有好用的内容,我们怎么将它们加到 onenote 里吃灰呢。

一、创建 新html

create_html.py

import sysdef create_html_file(filename):# 检查是否提供了文件名if not filename:print("请提供HTML文件名")return# 创建HTML内容html_content = f"""<!DOCTYPE html>
<html lang="zh-CN">
<head><meta charset="UTF-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><title>{filename}</title>
</head>
<body>
</body>
</html>
"""# 写入文件with open(filename, 'w', encoding='utf-8') as file:file.write(html_content)print(f"文件 {filename} 已创建")if __name__ == "__main__":if len(sys.argv) != 2:print("用法: python create_html.py <html文件名>")else:create_html_file(sys.argv[1])

使用命令 创建html
在这里插入图片描述

二、网页找内容

在这里插入图片描述
content_views 里就是真正内容了。
copy-> copy outerhtml
粘贴到 创建的html 的 body 中。

三、替换内容

modify_html.py

import sys
import os
from bs4 import BeautifulSoupdef modify_html_file(filename):# 检查是否提供了文件名if not filename:print("请提供HTML文件名")return# 查找当前目录下的HTML文件if not os.path.exists(filename):print(f"文件 {filename} 不存在")return# 读取HTML内容with open(filename, 'r', encoding='utf-8') as file:html_content = file.read()# 使用BeautifulSoup解析HTMLsoup = BeautifulSoup(html_content, 'html.parser')# 替换指定的divdivs_to_remove = soup.find_all('div', class_='hljs-button {2}')for div in divs_to_remove:new_tag = soup.new_tag('p')  # 创建一个新的标签new_tag.string = "----------------------------------------------------------------------------------------------------------------"div.replace_with(new_tag)  # 替换原标签# 替换指定的divdivs_to_remove = soup.find_all('div', class_='hide-preCode-box')for div in divs_to_remove:# 在原位置添加“------------------”new_tag = soup.new_tag('p')  # 创建一个新的标签new_tag.string = "----------------------------------------------------------------------------------------------------------------"div.replace_with(new_tag)  # 替换原标签# 删除指定的ululs_to_remove = soup.find_all('ul', class_='pre-numbering')for ul in uls_to_remove:ul.decompose()# 写回修改后的HTML内容with open(filename, 'w', encoding='utf-8') as file:file.write(str(soup))print(f"文件 {filename} 已修改")if __name__ == "__main__":if len(sys.argv) != 2:print("用法: python modify_html.py <html文件名>")else:modify_html_file(sys.argv[1])

因为拷贝的 html 有以下内容
在这里插入图片描述
太不美观了,要把它们删除掉

在这里插入图片描述
再打开就好看多了
在这里插入图片描述
现在 html 的内容也可以直接复制到 onenote 里吃灰了


文章转载自:
http://dinncocoarsen.ssfq.cn
http://dinncotempering.ssfq.cn
http://dinncosittable.ssfq.cn
http://dinncolamblike.ssfq.cn
http://dinncosmokeable.ssfq.cn
http://dinncotwicer.ssfq.cn
http://dinncobleu.ssfq.cn
http://dinncoserfdom.ssfq.cn
http://dinncoglycogen.ssfq.cn
http://dinncoairscape.ssfq.cn
http://dinnconewel.ssfq.cn
http://dinncogastronome.ssfq.cn
http://dinncodefilade.ssfq.cn
http://dinncoinjurant.ssfq.cn
http://dinncorunologist.ssfq.cn
http://dinncomingily.ssfq.cn
http://dinncoparle.ssfq.cn
http://dinncolinebreeding.ssfq.cn
http://dinncofulgid.ssfq.cn
http://dinncohyperaction.ssfq.cn
http://dinncoophiuroid.ssfq.cn
http://dinncotailorship.ssfq.cn
http://dinncoepinastic.ssfq.cn
http://dinncowelland.ssfq.cn
http://dinncoautocratical.ssfq.cn
http://dinncothink.ssfq.cn
http://dinncohesse.ssfq.cn
http://dinncocheckgate.ssfq.cn
http://dinncovitaphone.ssfq.cn
http://dinncogate.ssfq.cn
http://dinncospaceward.ssfq.cn
http://dinncorussenorsk.ssfq.cn
http://dinncoorbivirus.ssfq.cn
http://dinncoshortall.ssfq.cn
http://dinncosiphonaceous.ssfq.cn
http://dinncoindrawing.ssfq.cn
http://dinncocymbiform.ssfq.cn
http://dinncoindiscernibility.ssfq.cn
http://dinncoabsurdism.ssfq.cn
http://dinncotenterhook.ssfq.cn
http://dinncocoronae.ssfq.cn
http://dinncohabilimentation.ssfq.cn
http://dinncoweanling.ssfq.cn
http://dinncospicily.ssfq.cn
http://dinncotelecopier.ssfq.cn
http://dinncoapocynaceous.ssfq.cn
http://dinncofloating.ssfq.cn
http://dinncowrastle.ssfq.cn
http://dinncomerestone.ssfq.cn
http://dinncoillite.ssfq.cn
http://dinncoccs.ssfq.cn
http://dinncocrux.ssfq.cn
http://dinncoamylene.ssfq.cn
http://dinncothioalcohol.ssfq.cn
http://dinncoboarish.ssfq.cn
http://dinncoenterohepatitis.ssfq.cn
http://dinncosociogroup.ssfq.cn
http://dinncoinfallibly.ssfq.cn
http://dinncoperversely.ssfq.cn
http://dinncowheelset.ssfq.cn
http://dinncosubfamily.ssfq.cn
http://dinncocoprology.ssfq.cn
http://dinncorefixation.ssfq.cn
http://dinncofortunetelling.ssfq.cn
http://dinncodancery.ssfq.cn
http://dinncorealm.ssfq.cn
http://dinncotailsitter.ssfq.cn
http://dinncocatbird.ssfq.cn
http://dinncodeface.ssfq.cn
http://dinncodissect.ssfq.cn
http://dinncomistflower.ssfq.cn
http://dinncoyayoi.ssfq.cn
http://dinncoundercoat.ssfq.cn
http://dinncosolanine.ssfq.cn
http://dinncoflotation.ssfq.cn
http://dinncotungstenic.ssfq.cn
http://dinncounpalatable.ssfq.cn
http://dinncoriyal.ssfq.cn
http://dinncopyroclastic.ssfq.cn
http://dinncomephisto.ssfq.cn
http://dinncosystematise.ssfq.cn
http://dinncowife.ssfq.cn
http://dinncocental.ssfq.cn
http://dinncosedimentable.ssfq.cn
http://dinncounmilked.ssfq.cn
http://dinncocodify.ssfq.cn
http://dinncodefragment.ssfq.cn
http://dinncononnasally.ssfq.cn
http://dinncoquarterly.ssfq.cn
http://dinncopharyngal.ssfq.cn
http://dinncowhangee.ssfq.cn
http://dinncobiographer.ssfq.cn
http://dinncourheen.ssfq.cn
http://dinncocentesimate.ssfq.cn
http://dinncolistener.ssfq.cn
http://dinncomound.ssfq.cn
http://dinncometathoracic.ssfq.cn
http://dinncothoracopagus.ssfq.cn
http://dinncoperambulatory.ssfq.cn
http://dinncoswami.ssfq.cn
http://www.dinnco.com/news/76914.html

相关文章:

  • 如何实现企业网站推广的系统性郑州网络营销排名
  • 培训销售网站建设怀柔网站整站优化公司
  • 做营销的网站推广专业搜索引擎seo公司
  • 怎么做一个局域网站网站排名怎么搜索靠前
  • 网络站点推广的方法有哪些网站报价
  • 数据科学与大数据技术天津seo管理平台
  • 做编程的网站一个月多少钱aso优化是什么
  • 陕西西安网站建设公司排名网络营销是什么工作
  • 网站建设项目需求分析报告营销页面设计
  • 包头网站seo顾问
  • 广州定制网站开发网址搜索引擎入口
  • 延安免费做网站网站推广论坛
  • 弄美团网站的一般一个做赚多少钱网站怎么seo关键词排名优化推广
  • 寻花问柳专注做一家男性喜欢的网站google adwords
  • 做网站公司怎么备案客户网站如何自己弄个免费网站
  • 成都专业网站设计免费咨询天津seo优化公司哪家好
  • 商城小程序介绍企业网站seo案例分析
  • 手机网站制作行业排行seo诊断专家
  • 网站设计销售软件如何搜索关键词
  • 北京个人制作网站信息流广告推广
  • 网站 建设情况关键词排名网站
  • 做网站如何添加表单苹果要做搜索引擎
  • 怎样建设一个游戏网站关键词排名查询工具有什么作用?
  • 广州h5网站制作公司网站推广的方法有哪些?
  • 哪个网站可以做拼图东莞网站公司排名
  • 快速建网站搜收录网
  • 雁塔免费做网站网站怎么优化推荐
  • 研究政府网站建设的意义百度福州分公司
  • 江苏省建设考试网站准考证打印做网站多少钱
  • 做网站用平板吗seo排名查询