Spaces:
Running
Running
Update NER/html/extractHTML.py
Browse files- NER/html/extractHTML.py +2 -2
NER/html/extractHTML.py
CHANGED
|
@@ -80,8 +80,8 @@ class HTML():
|
|
| 80 |
"Connection": "keep-alive"
|
| 81 |
}
|
| 82 |
|
| 83 |
-
|
| 84 |
-
|
| 85 |
try:
|
| 86 |
if self.htmlLink and self.htmlLink != "None":
|
| 87 |
r = session.get(self.htmlLink, allow_redirects=True, timeout=15)
|
|
|
|
| 80 |
"Connection": "keep-alive"
|
| 81 |
}
|
| 82 |
|
| 83 |
+
session = requests.Session()
|
| 84 |
+
session.headers.update(headers)
|
| 85 |
try:
|
| 86 |
if self.htmlLink and self.htmlLink != "None":
|
| 87 |
r = session.get(self.htmlLink, allow_redirects=True, timeout=15)
|