Skip to content

Commit

Permalink
Merge pull request #4748 from NewAgeAirbender/mn_bills
Browse files Browse the repository at this point in the history
MN: verify=false on bill requests
  • Loading branch information
NewAgeAirbender authored Dec 8, 2023
2 parents 9e87649 + 4b2c592 commit 25a621e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scrapers/mn/bills.py
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def get_full_bill_list(self, chamber, session):
bill_type,
)
# Parse HTML
html = self.get(url).text
html = self.get(url, verify=False).text
doc = lxml.html.fromstring(html)

# get table containing bills
Expand Down Expand Up @@ -318,7 +318,7 @@ def get_bill_topics(self, chamber, session):
search_chamber,
search_session,
)
html = self.get(url).text
html = self.get(url, verify=False).text
doc = lxml.html.fromstring(html)

# For testing purposes, we don't really care about getting
Expand All @@ -337,7 +337,7 @@ def get_bill_topics(self, chamber, session):
"&topic[]=%s&submit_topic=GO"
% (BILL_DETAIL_URL_BASE, search_chamber, search_session, value)
)
opt_html = self.get(opt_url).text
opt_html = self.get(opt_url, verify=False).text
opt_doc = lxml.html.fromstring(opt_html)
for bill in opt_doc.xpath("//table/tbody/tr/td[2]/a/text()"):
bill = self.make_bill_id(bill)
Expand Down Expand Up @@ -474,7 +474,7 @@ def extract_citations(self, bill, bill_doc):
):
cite_url = link.xpath("@href")[0]
chapter = link.xpath("text()")[0]
html = self.get(cite_url).text
html = self.get(cite_url, verify=False).text
doc = lxml.html.fromstring(html)

title = doc.xpath(
Expand Down

0 comments on commit 25a621e

Please sign in to comment.