diff options
| author | Christian Krinitsin <mail@krinitsin.com> | 2025-05-25 19:24:43 +0200 |
|---|---|---|
| committer | Christian Krinitsin <mail@krinitsin.com> | 2025-05-25 19:24:43 +0200 |
| commit | cc84a7857c120d4c1c1b150e7fb8676d30fb5957 (patch) | |
| tree | 6a7d15f7e757cbd2b358661415311c9ef6f901d6 /mailinglist/thread.py | |
| parent | 4a7460d3f95c454544e9ecea8d4ff129b0b48885 (diff) | |
| download | emulator-bug-study-cc84a7857c120d4c1c1b150e7fb8676d30fb5957.tar.gz emulator-bug-study-cc84a7857c120d4c1c1b150e7fb8676d30fb5957.zip | |
refactor mailinglist script
Diffstat (limited to 'mailinglist/thread.py')
| -rwxr-xr-x | mailinglist/thread.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mailinglist/thread.py b/mailinglist/thread.py index 8efd5a73..ae7da680 100755 --- a/mailinglist/thread.py +++ b/mailinglist/thread.py @@ -5,13 +5,13 @@ from urllib.parse import urljoin from bs4 import BeautifulSoup -def write_message(html, hash_value): +def write_message(html : str, hash_value : str) -> None: soup = BeautifulSoup(html, 'html.parser') - text = soup.get_text(separator='\n', strip=True) + text = soup.get_text(separator = '\n', strip = True) with open(f"output_mailinglist/{hash_value}", "a") as file: file.write(f"{text}\n\n") -def process_thread(url, hash_value): +def process_thread(url : str, hash_value : str) -> None: request = get(url) text = request.text |