Skip to content

Commit

Permalink
MN: unverify the two other requests
Browse files Browse the repository at this point in the history
  • Loading branch information
NewAgeAirbender committed Dec 11, 2023
1 parent 4b2c592 commit 24ff570
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scrapers/mn/bills.py
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ def extract_versions(self, bill, doc):
current = doc.xpath("//div[contains(text(), 'Current bill text')]/a[1]")[0]

current_html_url = current.xpath("@href")[0]
current_response = requests.get(current_html_url)
current_response = requests.get(current_html_url, verify=False)
current_content = lxml.html.fromstring(current_response.content)

pdf_xpath = ".//a[contains(text(), 'Authors and Status')]/../following-sibling::td/a"
Expand Down Expand Up @@ -585,7 +585,7 @@ def extract_versions(self, bill, doc):
if href:
vers_html_url = href[0]
vers_html_url = format_version_url(vers_html_url)
vers_response = requests.get(vers_html_url)
vers_response = requests.get(vers_html_url, verify=False)
vers_content = lxml.html.fromstring(vers_response.content)
vers_pdf_url = vers_content.xpath(pdf_xpath)[0].xpath("@href")[0]
vers_pdf_url = format_version_url(vers_pdf_url)
Expand Down

0 comments on commit 24ff570

Please sign in to comment.