红包
  • 注册
  • 实用工具资源 实用工具资源 关注:381 内容:530

    5分钟学会提取多文件中指定字段三要素(附代码+视频教程)小脚本简单建议学学

  • 查看作者
  • 打赏作者
  • 93
  • 实用工具资源
  • 难度:低

    系统:全系统

    工具:python环境(运行脚本前安装):2分钟安装教程,vscode(视频有讲下载),手,不犯困的大脑

    简易脚本,附代码,动起来手来一起做!!! 有能力的可以优化下

    没后门只有十几行代码,我能偷你啥?偷你⬇️⬇️⬇️这个可以吗?

    @xongmao88         💖求大佬打赏💰500金币💰 买个改名卡💖

    视频教程:https://bit.ly/tgxongmao88

    python代码:

    import os
      
    def combine_files(folder, output_file_name):
        with open(output_file_name, 'w', encoding='utf-8') as outfile:
            for filename in os.listdir(folder):
                if filename.endswith('.txt'):
                    with open(os.path.join(folder, filename), 'r', encoding='utf-8') as infile:
                        outfile.write(infile.read())
      
    def extract_info(file_name, keywords):
        with open(file_name, 'r', encoding='utf-8') as file:  
            lines = file.readlines()
      
        with open('tiqu.txt', 'w', encoding='utf-8') as outfile:
            group_data = []
            for i, line in enumerate(lines):
                for keyword in keywords:
                    if keyword in line:
                        data = line.split(':')[-1].strip()
                        group_data.append(data)
                        if len(group_data) == 3:
                            outfile.write(' | '.join(group_data) + '\n')
                            group_data = []
      
    combine_files("ziliao", "hebing.txt")
    extract_info("hebing.txt", ["卡号", "日期", "CVV"])

    dasdqwdqwdwq


    回复

    123456

    回复

    6666

    联盟和卖鱼佬一个!tg:@db_968

    回复

    asdasdasafsd

    回复
    冲向2023

    cc

    回复

    1

    回复
    1
    回复

    66666

    回复

    看看

    回复

    6666

    大佬带带我 https://t.me/LAOSHU02

    回复

    请登录之后再进行评论

    登录
    • 大版主
    • 小版主

    暂没有数据

    暂没有数据

    实用工具资源
  • 今日 0
  • 内容 530
  • 关注 381
  • 赚金币
  • 实时动态
  • 偏好设置
  • 帖子间隔 侧栏位置: