-
Notifications
You must be signed in to change notification settings - Fork 0
/
edge.py
56 lines (50 loc) · 1.78 KB
/
edge.py
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
import requests
url = 'https://taxpa.edgecombecountync.gov/paas/?DEST=download&action=Search'
# export_url = 'https://taxpa.edgecombecountync.gov/paas/?DEST=download&action=Export'
export_url = 'https://taxpa.edgecombecountync.gov/paas/'
headers = {
'user-agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/112.0.0.0 Safari/537.36',
'referer': 'https://taxpa.edgecombecountync.gov/paas/?DEST=download&action=Search',
'cookie': 'ASPSESSIONIDQERCDDSB=POFPHGJCONDIDPNDJJAOHGHF',
'authority': 'taxpa.edgecombecountync.gov',
'path': '/paas/?DEST=download&action=Search'
}
query_para = {
'DEST': 'download',
'action': 'Search'
}
data = {
'OWNER': '',
'MAP': '',
'lACRE': '',
'uACRE': '',
'SUB': '',
'TWP': '',
'TAX': 'G01', # edgecome county tax
# 'col': 'Parcel ID',
# 'col_1': 'Property Address',
# 'col_2': 'Land Value',
# 'col_4': 'Account Number',
# 'col_5': 'Property Description',
# 'col_8': 'Current Owner 1',
# 'col_12': 'Current Owner 2',
# 'col_13': 'Deed Book/Page',
# 'col_14': 'Total Tax Value',
'col': 'Current Owner Address',
'page_no': 3
# 'col_0': True, # 'Parcel ID',
# 'col_1': True, # 'Property Address',
# 'col_2': True, # 'Land Value',
# 'col_4': True, # 'Account Number',
# 'col_5': True, # 'Property Description',
# 'col_8': True, # 'Current Owner 1',
# 'col_12': True, # 'Current Owner 2',
# 'col_13': True, # 'Deed Book/Page',
# 'col_14': True, # 'Total Tax Value',
# 'col_16': True, # 'Current Owner Address'
# 'page_no': 3
}
r = requests.post(url=export_url, headers=headers, data=data,params=query_para)
print(r.text)
with open('edge.html','w',encoding='utf-8')as f:
f.write(r.text)