1 Star 0 Fork 2

Lindddt/基于Python的爬取TwitCasting视频的工具

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
dealTxt.py 401 Bytes
一键复制 编辑 原始数据 按行查看 历史
PtvMiKu 提交于 2020-02-27 13:56 +08:00 . first upload
import dealHtml
def filename_edited_txt(url):
url_before = url
url_after = url_before.split("/")
return url_after[3] + "_" + url_after[5] + "_edited.txt"
def delete_lines():
lines = [l for l in open("temp/" + dealHtml.filename_txt(dealHtml.url), "r") if l.find("#", 0, 1) != 0]
fd = open("temp/" + filename_edited_txt(dealHtml.url) , "w")
fd.writelines(lines)
fd.close()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/Lindddt/PythonTwitCastingWebCrawler.git
git@gitee.com:Lindddt/PythonTwitCastingWebCrawler.git
Lindddt
PythonTwitCastingWebCrawler
基于Python的爬取TwitCasting视频的工具
master

搜索帮助