Skip to content

Commit

Permalink
remove lxml
Browse files Browse the repository at this point in the history
  • Loading branch information
hexatester committed Jan 12, 2021
1 parent 078356b commit 9079b34
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 52 deletions.
2 changes: 1 addition & 1 deletion dapodik/auth/base_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def login(
return False
res1 = self.session.post(self._url + "roleperan", data=data)
# handle redirect
soup = BeautifulSoup(res1.text, "lxml")
soup = BeautifulSoup(res1.text, "html.parser")
lis: List[Tag] = soup.find_all("li", class_="w3-bar")
lis.pop(0)
lis.pop(-1)
Expand Down
49 changes: 1 addition & 48 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ include = [
python = "^3.7"
requests = "^2.24.0"
beautifulsoup4 = "^4.9.1"
lxml = "^4.5.2"
attrs = "^20.3.0"

[tool.poetry.dev-dependencies]
Expand Down
1 change: 0 additions & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ beautifulsoup4==4.9.1
certifi==2020.6.20; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0"
chardet==3.0.4; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0"
idna==2.10; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0"
lxml==4.5.2; (python_version >= "2.7" and python_full_version < "3.0.0") or (python_full_version >= "3.5.0")
requests==2.24.0; (python_version >= "2.7" and python_full_version < "3.0.0") or (python_full_version >= "3.5.0")
soupsieve==1.9.6
urllib3==1.25.10; python_version >= "2.7" and python_full_version < "3.0.0" or python_full_version >= "3.5.0" and python_version < "4"
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@
"Topic :: Education",
],
packages=["dapodik"],
install_requires=["python" "requests" "beautifulsoup4" "lxml"],
install_requires=["python", "requests", "beautifulsoup4"],
entry_points={"console_scripts": ["dapodik=dapodik.__main__:main"]},
)

0 comments on commit 9079b34

Please sign in to comment.