mirror of
https://github.com/Code-For-Groningen/temmies.git
synced 2025-03-15 15:10:15 +01:00
Compare commits
No commits in common. "6a781ad2381e642801f77173748dc74537dd5df5" and "1367fd667f1cdacd8b8d058c6f6987e7387e4df8" have entirely different histories.
6a781ad238
...
1367fd667f
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,6 +3,7 @@ config.py
|
||||
tests/
|
||||
pathfinding/
|
||||
test.py
|
||||
setup.py
|
||||
|
||||
#Doc env
|
||||
.docs_env
|
||||
|
30
setup.py
30
setup.py
@ -1,30 +0,0 @@
|
||||
from setuptools import find_packages, setup
|
||||
|
||||
with open("README.md", "r") as f:
|
||||
l_description = f.read()
|
||||
|
||||
setup(
|
||||
name="temmies",
|
||||
version="1.2.1",
|
||||
packages=find_packages(),
|
||||
description="A wrapper for the Themis website",
|
||||
long_description=l_description,
|
||||
long_description_content_type="text/markdown",
|
||||
url="https://github.com/Code-For-Groningen/temmies",
|
||||
author="Boyan K.",
|
||||
author_email="boyan@confest.im",
|
||||
license="GPLv3",
|
||||
classifiers=[
|
||||
"Development Status :: 4 - Beta",
|
||||
"Intended Audience :: Developers",
|
||||
"License :: OSI Approved :: GNU General Public License v3 (GPLv3)",
|
||||
"Programming Language :: Python :: 3.9",
|
||||
],
|
||||
install_requires=[
|
||||
"requests",
|
||||
"lxml",
|
||||
"beautifulsoup4",
|
||||
"keyring"
|
||||
],
|
||||
python_requires=">=3.9",
|
||||
)
|
@ -53,6 +53,8 @@ class Year:
|
||||
|
||||
soup = BeautifulSoup(response.text, "lxml")
|
||||
|
||||
title_element = soup.find("h1")
|
||||
if not title_element:
|
||||
title_elements = soup.find_all("a", class_="fill accent large")
|
||||
if title_elements:
|
||||
title_element = title_elements[-1]
|
||||
|
Loading…
x
Reference in New Issue
Block a user