1 Star 0 Fork 0

sailist/豆瓣爬虫

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
tmp_tvinfo.py 582 Bytes
一键复制 编辑 原始数据 按行查看 历史
from get_douban import *
from get_douban import Douban_getter as Dg
import codecs
with open('test.txt') as f:
line = f.readline()
while ":" in line:
name = line.split(":")[1].strip()
if 'getter' not in locals():
getter = Dg(name)
else:
getter.reini(name)
getter.get_info()
info_list = getter.get_with_format()
with codecs.open('over.txt','a','utf-8',errors='ignore') as f1:
print("writing",name)
print(info_list)
f1.write(info_list)
line = f.readline()
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/sailist/watercress_reptile.git
git@gitee.com:sailist/watercress_reptile.git
sailist
watercress_reptile
豆瓣爬虫
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385