Spaces:
Running
Running
modified url and params to dl etsi docx
Browse files- classes.py +2 -5
classes.py
CHANGED
|
@@ -221,16 +221,13 @@ class ETSISpecFinder:
|
|
| 221 |
|
| 222 |
def fetch_for_type(spec_type):
|
| 223 |
params = {
|
| 224 |
-
"option": "com_standardssearch",
|
| 225 |
"view": "data",
|
| 226 |
"format": "json",
|
| 227 |
"page": "1",
|
| 228 |
-
"search": f"
|
| 229 |
-
"etsiNumber": "1",
|
| 230 |
-
"published": "1",
|
| 231 |
}
|
| 232 |
try:
|
| 233 |
-
resp = requests.get("https://www.etsi.org/", params=params,
|
| 234 |
headers=self.headers, verify=False, timeout=15,
|
| 235 |
proxies=_get_proxies())
|
| 236 |
data = resp.json()
|
|
|
|
| 221 |
|
| 222 |
def fetch_for_type(spec_type):
|
| 223 |
params = {
|
|
|
|
| 224 |
"view": "data",
|
| 225 |
"format": "json",
|
| 226 |
"page": "1",
|
| 227 |
+
"search": f"{doc_id} v{version_str}",
|
|
|
|
|
|
|
| 228 |
}
|
| 229 |
try:
|
| 230 |
+
resp = requests.get("https://www.etsi.org/standards/looking-for-an-etsi-standard/dvds-of-our-standards", params=params,
|
| 231 |
headers=self.headers, verify=False, timeout=15,
|
| 232 |
proxies=_get_proxies())
|
| 233 |
data = resp.json()
|