Generate random address of us | Web Scripts | Crax

Welcome To Crax.Pro Forum!

Check our new Marketplace at Crax.Shop

   Login! SignUp Now!
  • We are in solidarity with our brothers and sisters in Palestine. Free Palestine. To learn more visit this Page

  • Crax.Pro domain has been taken down!

    Alternatives: Craxpro.io | Craxpro.com

Generate random address of us

Generate random address of us

LV
1
 

yohilax951

Member
Joined
Dec 20, 2023
Threads
67
Likes
32
Awards
5
Credits
3,745©
Cash
0$
import random
from faker import Faker

def generate_fake_usa_address():
fake = Faker()
address = fake.address().split('\n')
city, state_zip = address[-1].split(', ')
state, zip_code = state_zip.split(' ')
country = "USA"

return {
"Street Address": address[0],
"City": city,
"State": state,
"ZIP Code": zip_code,
"Country": country
}

# Example usage
fake_address = generate_fake_usa_address()
for key, value in fake_address.items():
pri
nt(f"{key}: {value}")
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Top Bottom