VyLala commited on
Commit
792f983
·
verified ·
1 Parent(s): 9e18f40

Update NER/html/extractHTML.py

Browse files
Files changed (1) hide show
  1. NER/html/extractHTML.py +2 -2
NER/html/extractHTML.py CHANGED
@@ -80,8 +80,8 @@ class HTML():
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)
 
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)