notice_dag.py 文件源码

python
阅读 28 收藏 0 点赞 0 评论 0

项目:scrapy_projects 作者: morefreeze 项目源码 文件源码
def filter_data(csv_file, **kwargs):
    f = pd.read_csv(csv_file)
    candidate = []
    filter = Filter()
    filter.install_rule(lambda v: not v['title'].startswith('test'))
    for row in f.iterrows():
        idx, v = row
        item = {
            'title': v['title'],
        }
        if filter.check(item):
            candidate.append(item)
    return candidate


# If len(candicate) > 0 will send to slack, the text will store as slack_txt_file
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号