-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexport_law_data.py
More file actions
114 lines (109 loc) · 4.22 KB
/
export_law_data.py
File metadata and controls
114 lines (109 loc) · 4.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
import csv
# Data for each person
data = [
{
"Name": "Susan L Ward",
"Company": "Law Offices of Susan L Ward",
"LinkedIn Profile": "linkedin.com/in/susanlward",
"Website": "stlfamilylaw.com",
"Phone": "(314) 783-9400",
"Address": "2652 Melvin Avenue, Brentwood, MO 63144",
"Email": "sward@stlfamilylaw.com",
},
{
"Name": "Jan A. Meyer, Esq.",
"Company": "Experienced in the areas of trusts and estates, trust administration and probates",
"LinkedIn Profile": "linkedin.com/in/meyeresqfamilyprotection",
"Website": "danapointwills.com",
"Phone": "(949) 607-9412",
"Fax": "(949) 340-2033",
"Address": "32776 Sail Way Dana Point, CA 92629",
"Email": "jan@danapointwills.com",
},
{
"Name": "Edward Kelleher",
"Company": "Business Owner at Law Off. Edward J Kelleher",
"LinkedIn Profile": "linkedin.com/in/edward-kelleher-0207b63a",
"Website": "kelleherlegalteam.com",
"Address": "57 North Street Suite 405, Danbury, CT 06810",
"Email": "EKelleher@KelleherLegalTeam.com",
"Phone": "203-270-6801",
"Fax": "203-486-8042",
},
{
"Name": "Yaacov Brisman",
"Company": "Owner at Brisman Law Firm P.C.",
"LinkedIn Profile": "linkedin.com/in/yaacov-brisman-8a66245",
"Website": "brismanlaw.com",
},
{
"Name": "Gerard Marino",
"Company": "Owner/Attorney, Marino & Marino, P.C.",
"LinkedIn Profile": "linkedin.com/in/gerard-marino-5242327",
"Website": "marinolawyers.com",
"Address": "23 Shore Road, Winchester, MA 01890",
"Phone": "781-721-9500",
"Fax": "781-721-9501",
},
{
"Name": "Thomas Young",
"Company": "Owner at Law Office of Thomas Young, PC",
"LinkedIn Profile": "linkedin.com/in/thomas-young-83a53197",
"Website": "thomasyounglaw.com",
"Address": "1776 S. Jackson Street, Suite 402, Denver, CO 80210",
"Email": "thomasyounglawoffice@gmail.com",
"Phone": "(303) 756-9419",
"Fax": "(303) 692-9049",
},
{
"Name": "Kenneth L. Sheppard, Jr.",
"Company": "Sheppard Law Offices, Co., L.P.A.",
"LinkedIn Profile": "linkedin.com/in/ohio-attorney-ken-sheppard-jr",
"Website": "sheppardlawoffices.com",
"Address": "8351 N. High Street, Ste. 101, Columbus, OH 43235",
"Phone": "866-770-2190",
},
{
"Name": "Hope R. Jay, MSW, JD",
"Company": "Business Owner at The Law Office of Hope R. Jay",
"LinkedIn Profile": "linkedin.com/in/hope-r-jay-msw-jd-4392958",
"Website": "hopejaylaw.com",
"Address": "415 Franklin Street, Buffalo, NY 14202",
"Email": "hope@hopejaylaw.com",
"Phone": "716.856.6300",
"Fax": "716.853.6506",
},
{
"Name": "Charles Shaw",
"Company": "Owner at Law Offices of Charles Regan Shaw PLC",
"LinkedIn Profile": "linkedin.com/in/charles-shaw-73b22a10",
},
{
"Name": "Douglas Funkhouser",
"Company": "Owner, Douglas A. Funkhouser Co., L.P.A.",
"LinkedIn Profile": "linkedin.com/in/douglasfunkhouser",
"Website": "funkhouserlaw.com",
"Phone": "(614) 756-2154",
"Address": "765 S. High Street, Columbus, OH 43206",
},
{
"Name": "Gary Massey",
"Company": "Chattanooga Personal Injury Attorney",
"LinkedIn Profile": "linkedin.com/in/garymasseyjr",
"Website": "masseyattorneys.com",
"Address": "6400 Lee Highway, Suite 101, Chattanooga, TN 37421",
"Phone": "(423) 697-4529",
"Fax": "(423) 634-8886",
}
]
# CSV file name
csv_file = "lawyers_info.csv"
# Field names for the CSV
fieldnames = ["Name", "Company", "LinkedIn Profile", "Website", "Address", "Phone", "Fax", "Email"]
# Write the data to a CSV file
with open(csv_file, mode='w', newline='') as file:
writer = csv.DictWriter(file, fieldnames=fieldnames)
writer.writeheader()
for person in data:
writer.writerow(person)
print(f"Data has been written to {csv_file}")