๐Ÿค” ๋”๋ฏธ ๋ฐ์ดํ„ฐ๊ฐ€ ์™œ ํ•„์š”ํ•ด?

์ƒํ’ˆ ๋ฐ์ดํ„ฐ๋Š” ์ฟ ํŒก์—์„œ ํฌ๋กค๋งํ•ด ์™”์ง€๋งŒ ์‹ค์„œ๋น„์Šค๋ฅผ ๋ชฉ์ ์œผ๋กœ ํ•˜์ง€ ์•Š๋Š” ์šฐ๋ฆฌ ํ”„๋กœ์ ํŠธ์— ์œ ์ € ๊ฒฝ์šฐ์—๋Š” ๋”๋ฏธ ๋ฐ์ดํ„ฐ๋กœ ์ง„ํ–‰ํ•˜๊ธฐ๋กœ ํ–ˆ๋‹ค.

๋žœ๋ค์œผ๋กœ ๋ฐ์ดํ„ฐ๋ฅผ ์ƒ์„ฑํ•ด์ฃผ๋Š” ์„œ๋น„์Šค๋ฅผ ์ด์šฉํ•˜์—ฌ ์ง‘์–ด ๋„ฃ์„ ์˜ˆ์ •์ด์—ˆ๋Š”๋ฐ, ์–ธ์–ด๊ฐ€ ํ•œ๊ธ€์ธ ๊ฒŒ ์—†์–ด์„œ ์ง์ ‘ ์ฝ”๋”ฉํ•˜๊ธฐ๋กœ!

 

๊ฐ„๋‹จํžˆ ํŒŒ์ด์ฌ์œผ๋กœ ์ฝ”๋”ฉ

 


๐Ÿ˜ƒ ๋”๋ฏธ ๋ฐ์ดํ„ฐ ์ƒ์„ฑ ์ฝ”๋“œ

๐Ÿชช ๋žœ๋ค ์ด๋ฆ„

# ์ด๋ฆ„ ์ƒ์„ฑ ํ•จ์ˆ˜๋“ค
def firstName():
    first = ["๊น€", "์ด", "๋ฐ•", "์ตœ", "์ •", "๊ฐ•", "์กฐ", "์œค", "์žฅ", "์ž„", "ํ•œ", "์˜ค", "์„œ", "์‹ ", "๊ถŒ", "ํ™ฉ", "์•ˆ",
             "์†ก", "๋ฅ˜", "์ „", "ํ™", "๊ณ ", "๋ฌธ", "์–‘", "์†", "๋ฐฐ", "์กฐ", "๋ฐฑ", "ํ—ˆ", "์œ ", "๋‚จ", "์‹ฌ", "๋…ธ", "์ •",
             "ํ•˜", "๊ณฝ", "์„ฑ", "์ฐจ", "์ฃผ", "์šฐ", "๊ตฌ", "์‹ ", "์ž„", "๋‚˜", "์ „", "๋ฏผ", "์œ ", "์ง„", "์ง€", "์—„", "์ฑ„",
             "์›", "์ฒœ", "๋ฐฉ", "๊ณต", "๊ฐ•", "ํ˜„", "ํ•จ", "๋ณ€", "์—ผ", "์–‘", "๋ณ€", "์—ฌ", "์ถ”", "๋…ธ", "๋„", "์†Œ", "์‹ ",
             "์„", "์„ ", "์„ค", "๋งˆ", "๊ธธ", "์ฃผ", "์—ฐ", "๋ฐฉ", "์œ„", "ํ‘œ", "๋ช…", "๊ธฐ", "๋ฐ˜", "์™•", "๊ธˆ", "์˜ฅ", "์œก",
             "์ธ", "๋งน", "์ œ", "๋ชจ", "์žฅ", "๋‚จ", "ํƒ", "๊ตญ", "์—ฌ", "์ง„", "์–ด", "์€", "ํŽธ", "๊ตฌ", "์šฉ"]

    return random.choice(first)

def LastName():
    last =  ["๊ฐ€", "๊ฐ•", "๊ฑด", "๊ฒฝ", "๊ณ ", "๊ด€", "๊ด‘", "๊ตฌ", "๊ทœ", "๊ทผ", "๊ธฐ", "๊ธธ", "๋‚˜", "๋‚จ", "๋…ธ", "๋ˆ„", "๋‹ค",
            "๋‹จ", "๋‹ฌ", "๋‹ด", "๋Œ€", "๋•", "๋„", "๋™", "๋‘", "๋ผ", "๋ž˜", "๋กœ", "๋ฃจ", "๋ฆฌ", "๋งˆ", "๋งŒ", "๋ช…", "๋ฌด", "๋ฌธ", "๋ฏธ", "๋ฏผ", "๋ฐ”", "๋ฐ•",
            "๋ฐฑ", "๋ฒ”", "๋ณ„", "๋ณ‘", "๋ณด", "๋น›", "์‚ฌ", "์‚ฐ", "์ƒ", "์ƒˆ", "์„œ", "์„", "์„ ", "์„ค", "์„ญ", "์„ฑ", "์„ธ", "์†Œ", "์†”", "์ˆ˜", "์ˆ™", "์ˆœ",
            "์ˆญ", "์Šฌ", "์Šน", "์‹œ", "์‹ ", "์•„", "์•ˆ", "์• ", "์—„", "์—ฌ", "์—ฐ", "์˜", "์˜ˆ", "์˜ค", "์˜ฅ", "์™„", "์š”", "์šฉ", "์šฐ", "์›", "์›”", "์œ„",
            "์œ ", "์œค", "์œจ", "์œผ", "์€", "์˜", "์ด", "์ต", "์ธ", "์ผ", "์žŽ", "์ž", "์ž”", "์žฅ", "์žฌ", "์ „", "์ •", "์ œ", "์กฐ", "์ข…", "์ฃผ", "์ค€",
            "์ค‘", "์ง€", "์ง„", "์ฐฌ", "์ฐฝ", "์ฑ„", "์ฒœ", "์ฒ ", "์ดˆ", "์ถ˜", "์ถฉ", "์น˜", "ํƒ", "ํƒœ", "ํƒ", "ํŒ", "ํ•˜", "ํ•œ", "ํ•ด", "ํ˜", "ํ˜„", "ํ˜•",
            "ํ˜œ", "ํ˜ธ", "ํ™", "ํ™”", "ํ™˜", "ํšŒ", "ํšจ", "ํ›ˆ", "ํœ˜", "ํฌ", "์šด", "๋ชจ", "๋ฐฐ", "๋ถ€", "๋ฆผ", "๋ด‰", "ํ˜ผ", "ํ™ฉ", "๋Ÿ‰", "๋ฆฐ", "์„", "๋น„",
            "์†œ", "๊ณต", "๋ฉด", "ํƒ", "์˜จ", "๋””", "ํ•ญ", "ํ›„", "๋ ค", "๊ท ", "๋ฌต", "์†ก", "์šฑ", "ํœด", "์–ธ", "๋ น", "์„ฌ", "๋“ค", "๊ฒฌ", "์ถ”", "๊ฑธ", "์‚ผ",
            "์—ด", "์›…", "๋ถ„", "๋ณ€", "์–‘", "์ถœ", "ํƒ€", "ํฅ", "๊ฒธ", "๊ณค", "๋ฒˆ", "์‹", "๋ž€", "๋”", "์†", "์ˆ ", "ํ›”", "๋ฐ˜", "๋นˆ", "์‹ค", "์ง", "ํ ",
            "ํ”", "์•…", "๋žŒ", "๋œธ", "๊ถŒ", "๋ณต", "์‹ฌ", "ํ—Œ", "์—ฝ", "ํ•™", "๊ฐœ", "๋กฑ", "ํ‰", "๋Š˜", "๋Šฌ", "๋ž‘", "์–€", "ํ–ฅ", "์šธ", "๋ จ"]

    return random.choice(last)

# ์‚ฌ์šฉ์‹œ
name = firstName() + LastName() + LastName()

 

๐Ÿ“จ ๋žœ๋ค ์ฃผ์†Œ

์ด๋ฒˆ ๋”๋ฏธ๋ฐ์ดํ„ฐ ์ƒ์„ฑ์˜ ํ•ต์‹ฌ!

์ฃผ์†Œ ๊ฐ™์€ ๊ฒฝ์šฐ์—๋Š” ์–ด๋–ป๊ฒŒ ์ƒ์„ฑํ•ด์•ผํ•˜๋‚˜ ๊ณ ๋ฏผํ–ˆ๋Š” ๋ฐ ๊ตฌ๊ธ€๋ง ํ•˜๋‹ค๊ฐ€ ์ „๊ตญ ๊ฑด๋ฌผ ์ฃผ์†Œ๋ฅผ ์ œ๊ณตํ•˜๋Š” ์„œ๋น„์Šค๊ฐ€ ์žˆ์—ˆ๋‹ค.

์ด๋ฅผ ๋‹ค์šด ๋ฐ›๊ณ  ๋žœ๋ค ์ค„์„ ๋ฐ›์•„์™€ ํŒŒ์ดํ”„๊ธฐ์ค€์œผ๋กœ listํ˜•ํƒœ๋ฅผ ๋งŒ๋“ค์–ด ๊ฐ€๊ณตํ•ด ํ•„์š”ํ•œ ์ •๋ณด๋งŒ ๊ฐ€์ ธ์˜ค๋Š” ์‹์œผ๋กœ ์ •์ œํ•˜๋Š” ๋ฐฉ๋ฒ•์„ ์ฑ„ํƒํ–ˆ๋‹ค.

 

-์› ์ •๋ณด ํ˜•ํƒœ (์•„๋ž˜ ์‚ฌ์ดํŠธ์—์„œ ์ „๊ตญ ์‹œ๋„ ๊ธฐ์ค€์œผ๋กœ txt ํŒŒ์ผ์„ ์ œ๊ณตํ•˜๊ณ  ์žˆ๋‹ค. ์ฐธ๊ณ ๋กœ 2018๋…„ ๋•Œ์˜ ์ฃผ์†Œ!!! ์ฃผ์˜!!!) 

 

์ฃผ์†Œ์ •์ œ์ „ํ™˜์„œ๋น„์Šค

์ฃผ์†Œ๋ฅผ ์ž…๋ ฅํ•˜์„ธ์š”. ์ •์ œ๋œ ๋„๋กœ๋ช…์ฃผ์†Œ ๋ฐ ์ง€๋ฒˆ์ฃผ์†Œ๋กœ ์ž๋™ ๋ณ€ํ™˜

www.sujiewon.com

- ์œ„ ํŒŒ์ผ์„ ์‚ฌ์šฉํ•˜์—ฌ ์ฃผ์†Œ ์ถ”์ถœ

def address():
    f_Ad = open('build_seoul.txt', 'r')
    random_line = random.choice(list(f_Ad.readlines())).splitlines()[0]
    f_Ad.close()
    return random_line

# ์‚ฌ์šฉ์‹œ
address_full = address()
address_list = address_full.split('|')

sido = address_list[1]
sigungu = address_list[2]
eupmyeondong = address_list[3]
street = address_list[9]
zipcode = address_list[19]

 

 

๐Ÿชช ๋žœ๋ค ์•„์ด๋””์™€ ์ด๋ฉ”์ผ

def loginId():
    n = random.randrange(5,10)
    loginId = ""
    for x in range(n):
        loginId += str(random.choice(string.ascii_lowercase))

    return loginId

 # ์‚ฌ์šฉ์‹œ
login_Id = loginId()
email = login_Id + "@google.com"

 

๐Ÿ”’ ๋žœ๋ค ํŒจ์Šค์›Œ๋“œ

password_make = string.ascii_letters + string.digits

def password():
    lenNum = 64
    password = "";
    for y in range(64) :
        password += random.choice(password_make)

    return password

# ์‚ฌ์šฉ์‹œ
password()

 

๐Ÿ“„ CSVํŒŒ์ผ๋กœ ๋ณ€ํ™˜

password_make = string.ascii_letters + string.digits
create_cnt = 1000

f_Save = open('random_member.csv', 'w', encoding='utf-8', newline='')
wr = csv.writer(f_Save)

for i in range(create_cnt) :
    name = firstName() + LastName() + LastName()
    address_full = address()
    address_list = address_full.split('|')

    login_Id = loginId()
    email = login_Id + "@google.com"

    sido = address_list[1]
    sigungu = address_list[2]
    eupmyeondong = address_list[3]
    street = address_list[9]
    zipcode = address_list[19]

    wr.writerow([sido, sigungu, eupmyeondong, street, zipcode, email, login_Id, name, password()])
    print([sido, sigungu, eupmyeondong, street, zipcode, email, login_Id, name, password()])

f_Save.close()

 

๐ŸŽ‰ ๊ฒฐ๊ณผ๋ฌผ

 

+ Recent posts