Skip to content
Snippets Groups Projects
Commit cdbfa58e authored by EmilyFitzgerald's avatar EmilyFitzgerald
Browse files

removing print statements, adding matplotlib and openpyxl

parent ceaab173
Branches main
No related tags found
No related merge requests found
......@@ -75,13 +75,11 @@ class Search:
self.expanded_search_terms = sorted(list(set(self.expanded_search_terms)))
response = requests.get(self.url_path, params=self.params, headers={'User-Agent': 'Chrome/102.0.0.0'})
print('status:', response.status_code)
if response.status_code == 504:
print('timeout errors, reducing page size...')
params.update(rows=20)
response = requests.get(self.url_path, params=self.params, headers={'User-Agent': 'Chrome/102.0.0.0'})
print('status:', response.status_code)
if self.search_url == '':
self.search_url = response.url
......
This diff is collapsed.
......@@ -17,6 +17,8 @@ lemminflect = "^0.2.3"
pytest-cov = "^4.0.0"
typer = "^0.7.0"
pytz = "^2022.7.1"
openpyxl = "^3.1.2"
matplotlib = "^3.7.1"
[tool.poetry.dev-dependencies]
pytest = "^7.2.1"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment