Fake Person generator

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Donator
Katılım
27 Tem 2017
Mesajlar
51
Tepki puanı
10
Ödüller
9
Sosyal
8 HİZMET YILI
some days ago ive created a script to generate "Fake persons info".
iam not using anymore and would to share with you.


Python:
from faker import Faker

# Create an instance of the Faker class
fake = Faker()

# Generate personal data for a person in the United States
name = fake.name()
address = fake.address()
email = fake.email()
phone_number = fake.phone_number()
job_title = fake.job()
tin = fake.ssn()
street_code = fake.zipcode()

# Print the personal data in bullet points
print("- Name: {}".format(name))
print("- Address: {}".format(address))
print("- Email: {}".format(email))
print("- Phone number: {}".format(phone_number))
print("- Job title: {}".format(job_title))
print("- TIN: {}".format(tin))
print("- Street code: {}".format(street_code))
 
Ultra Üye
Katılım
22 Ara 2019
Mesajlar
1,554
Çözümler
3
Tepki puanı
148
Ödüller
5
Yaş
20
6 HİZMET YILI
some days ago ive created a script to generate "Fake persons info".
iam not using anymore and would to share with you.


Python:
from faker import Faker

# Create an instance of the Faker class
fake = Faker()

# Generate personal data for a person in the United States
name = fake.name()
address = fake.address()
email = fake.email()
phone_number = fake.phone_number()
job_title = fake.job()
tin = fake.ssn()
street_code = fake.zipcode()

# Print the personal data in bullet points
print("- Name: {}".format(name))
print("- Address: {}".format(address))
print("- Email: {}".format(email))
print("- Phone number: {}".format(phone_number))
print("- Job title: {}".format(job_title))
print("- TIN: {}".format(tin))
print("- Street code: {}".format(street_code))
thanks bro it's so good
 
Onaylı Üye
Katılım
24 Eyl 2020
Mesajlar
138
Çözümler
2
Tepki puanı
10
Ödüller
3
Yaş
27
Sosyal
5 HİZMET YILI
if u guys dont want to run the script u can use 4devs
 
Onaylı Üye
Katılım
10 Eyl 2022
Mesajlar
58
Tepki puanı
1
Ödüller
3
3 HİZMET YILI
it good for every beginners to improve there skills with projects like these keep it up
 
Onaylı Üye
Katılım
31 Ocak 2020
Mesajlar
52
Tepki puanı
2
Ödüller
4
Yaş
26
6 HİZMET YILI
some days ago ive created a script to generate "Fake persons info".
iam not using anymore and would to share with you.


Python:
from faker import Faker

# Create an instance of the Faker class
fake = Faker()

# Generate personal data for a person in the United States
name = fake.name()
address = fake.address()
email = fake.email()
phone_number = fake.phone_number()
job_title = fake.job()
tin = fake.ssn()
street_code = fake.zipcode()

# Print the personal data in bullet points
print("- Name: {}".format(name))
print("- Address: {}".format(address))
print("- Email: {}".format(email))
print("- Phone number: {}".format(phone_number))
print("- Job title: {}".format(job_title))
print("- TIN: {}".format(tin))
print("- Street code: {}".format(street_code))
is there any external package in this script?
 
Onaylı Üye
Katılım
16 Tem 2021
Mesajlar
51
Tepki puanı
3
Ödüller
2
Yaş
37
4 HİZMET YILI
Here's a cleaner and more efficient code for generating fake personal data using the Faker library in Python:


Python:
from faker import Faker

# Create an instance of the Faker class
fake = Faker()

# Generate personal data for a person in the United States
personal_data = {
    'Name': fake.name(),
    'Address': fake.address(),
    'Email': fake.email(),
    'Phone number': fake.phone_number(),
    'Job title': fake.job(),
    'TIN': fake.ssn(),
    'Street code': fake.zipcode(),
}

# Print the personal data in bullet points
for key, value in personal_data.items():
    print(f"- {key}: {value}")
 
Banlı Üye
Katılım
29 Tem 2022
Mesajlar
234
Tepki puanı
13
Yaş
26
3 HİZMET YILI
some days ago ive created a script to generate "Fake persons info".
iam not using anymore and would to share with you.


Python:
from faker import Faker

# Create an instance of the Faker class
fake = Faker()

# Generate personal data for a person in the United States
name = fake.name()
address = fake.address()
email = fake.email()
phone_number = fake.phone_number()
job_title = fake.job()
tin = fake.ssn()
street_code = fake.zipcode()

# Print the personal data in bullet points
print("- Name: {}".format(name))
print("- Address: {}".format(address))
print("- Email: {}".format(email))
print("- Phone number: {}".format(phone_number))
print("- Job title: {}".format(job_title))
print("- TIN: {}".format(tin))
print("- Street code: {}".format(street_code))
It so crazy bro:)
 
Onaylı Üye
Katılım
1 Nis 2019
Mesajlar
93
Tepki puanı
5
Ödüller
4
Yaş
27
7 HİZMET YILI
some days ago ive created a script to generate "Fake persons info".
iam not using anymore and would to share with you.


Python:
from faker import Faker

# Create an instance of the Faker class
fake = Faker()

# Generate personal data for a person in the United States
name = fake.name()
address = fake.address()
email = fake.email()
phone_number = fake.phone_number()
job_title = fake.job()
tin = fake.ssn()
street_code = fake.zipcode()

# Print the personal data in bullet points
print("- Name: {}".format(name))
print("- Address: {}".format(address))
print("- Email: {}".format(email))
print("- Phone number: {}".format(phone_number))
print("- Job title: {}".format(job_title))
print("- TIN: {}".format(tin))
print("- Street code: {}".format(street_code))
wow thank you so much I didn't know you could do that
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Üst