Code Monkey home page Code Monkey logo

txt-file-mysql-importer's Introduction

Text file to MySQL importer

Mainly created for the importation of the Collection 1 data breach. Given a directory, bulk imports all colon-delimited .txt files into a MySql database in the format email:password. Creates a new table for each text file. Easily modified to however your text file is set up. Just change the columns and delimiter to whatever you need.

This is by no means as efficient as possible but it gets the job done in a relatively quick manner.

Installation

Move/Copy main.py to the same directory as your .txt files.

Usage

main.py

Features

  • Bulk-rename all files
    • Remove all www.
    • Strip all parenthesis (), square brackets [], curly brackets {} and their contents.
    • Strip all whitespace
  • Create a new table for each file
    • Example:
      • website1.com {12,000}[NOHASH].txt becomes website1_com
  • Optionally delete files when completed.

Example

website1.com {12,000} [NOHASH].txt

1 [email protected]:password1234
2 [email protected]:qwertyuiop
...
...
12000 [email protected]:passw0rd

txt-file-mysql-importer's People

Contributors

matttevans avatar

Watchers

 avatar

txt-file-mysql-importer's Issues

Link to collection 1

Hi, Could you provide link to collection 1 data? It seems like all the links for collection 1 data are down

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.