Commit Graph

438 Commits

Author SHA1 Message Date
Jens Bergmann
e43ac4f1f9 feat: extend translations and add translation unit test (#427) 2025-02-12 22:25:05 +01:00
sebthom
c61c14709f ci: add PR title validation 2025-02-12 22:16:16 +01:00
github-actions[bot]
8270554507 chore: ✔ Update coverage 7.6.11 -> 7.6.12 2025-02-12 21:45:54 +01:00
sebthom
9f19cd85bd docs: fix build status badge 2025-02-12 21:40:45 +01:00
Jens Bergmann
4051620aed enh: allow per-ad overriding of global description affixes (#416) 2025-02-11 23:39:26 +01:00
Heavenfighter
a67112d936 fix: handle delayed ad publication #414 (#422) 2025-02-11 20:43:33 +01:00
Heavenfighter
820ae8966e fix: download all ads not working anymore #420 (#421)
renamed h2 to h3
2025-02-11 12:33:32 -06:00
sebthom
f3beb795b4 refact: minor cleanup 2025-02-10 22:06:03 +01:00
sebthom
5ade82b54d chore: update pyproject config 2025-02-10 21:16:38 +01:00
sebthom
367ef07798 refact: improve logger handling 2025-02-10 20:34:58 +01:00
sebthom
ec7ffedcd6 ci: add build timeout to all jobs 2025-02-10 18:51:54 +01:00
sebthom
2402ba2572 refact: reorganize utility modules 2025-02-10 06:23:17 +01:00
sebthom
e8d342dc68 docs: document ad config defaults 2025-02-10 03:23:33 +01:00
sebthom
7169975d2a fix: logging file handler not closed on bot shutdown. Fixes #405 2025-02-09 04:23:24 +01:00
github-actions[bot]
b4658407a3 chore: Update Python dependencies 2025-02-09 03:45:17 +01:00
Jens Bergmann
affde0debf test: Enhance test coverage for KleinanzeigenBot initialization and core functionality (#408) 2025-02-09 03:33:01 +01:00
Jens Bergmann
dd5f2ba5e4 fix: Ensure Consistent Content Hash Calculation (#415)
This commit addresses an issue where the content hash was being calculated on the current configuration (`ad_cfg`) instead of the original configuration (`ad_cfg_orig`). This could lead to inconsistent hash values, especially when the configuration is updated during the execution of the program.

The fix involves calculating the content hash on the original configuration (`ad_cfg_orig`) in both the `__check_ad_republication` and `publish_ad` methods. This ensures that the hash value is consistent and matches what was stored.

The relevant code changes are as follows:

- In the `__check_ad_republication` method, the content hash is now calculated on `ad_cfg_orig` instead of `ad_cfg`.
- In the `publish_ad` method, the content hash is also calculated on `ad_cfg_orig` to ensure consistency.

These changes should improve the reliability of the content hash comparison and the overall stability of the application.
2025-02-09 03:14:19 +01:00
sebthom
042525eb91 build: upgrade to Python 3.13.2 2025-02-08 22:18:16 +01:00
DreckSoft
b12118361d feat: display actual num of chars of description when too long (#403) 2025-02-08 04:03:54 +01:00
github-actions[bot]
20fb47a6e2 chore: Update Python dependencies 2025-02-05 16:39:22 -06:00
1cu
f4f00b9563 test: Add comprehensive test suite for extract.py (#400) 2025-02-05 23:35:45 +01:00
sebthom
08197eabae docs: improve disclaimer 2025-02-03 22:06:30 +01:00
sebthom
9cd4fdd693 build: use Python 3.13.1 when building with act 2025-02-03 21:12:45 +01:00
github-actions[bot]
67fd0e2724 chore: Update Python dependencies 2025-02-03 17:06:06 +01:00
1cu
76b0901166 test: reorganized unit/integration tests (#398) 2025-02-03 17:05:14 +01:00
Jens Bergmann
100f2fd8c5 style: ensure all comments and strings are in English - Update test descriptions and comments 2025-02-03 14:15:47 +01:00
Jens Bergmann
be8eee6aa0 fix: Handle None values in calculate_content_hash - Add test case to reproduce TypeError with None values - Fix handling of None values in special_attributes, shipping_options and images - Ensure consistent empty value handling (empty string instead of 'None') - Fixes #395 2025-02-03 14:15:47 +01:00
github-actions[bot]
f51dab0c3f chore: Update Python dependencies 2025-01-29 20:57:08 +01:00
1cu
fa0d43efa8 fix: Make doctests locale-independent (#390) (#391) 2025-01-27 09:22:15 +01:00
1cu
f01109c956 feat: add hash-based ad change detection (#343) (#388)
Co-authored-by: sebthom <sebthom@users.noreply.github.com>
2025-01-26 23:37:33 +01:00
sebthom
3d27755207 docs: update README 2025-01-26 20:05:28 +01:00
kleinanzeigen-bot-tu[bot]
ed7fd21272 chore: Update deprecated 1.2.15 -> 1.2.17 (#389)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-01-26 19:50:07 +01:00
sebthom
236740fc2b chore: update pyproject.toml 2025-01-24 22:13:59 +01:00
sebthom
d2eb3adc77 chore: update PR template 2025-01-24 21:50:06 +01:00
Heavenfighter
66634ce636 fix: fixed shipping button selector #385 (#387) 2025-01-20 21:40:28 +01:00
sebthom
7d9b857a46 docs: Update doc 2025-01-20 21:40:28 +01:00
Jens Bergmann
2f93e0dfda fix: correct city selection when multiple cities are available for a ZIP code
When multiple cities are available for a ZIP code, the bot now correctly selects
the city specified in the YAML file's location field instead of always choosing
the first option.

The change:
- Adds logic to select the correct city from dropdown based on location field
- Adds a small delay after ZIP code input to allow dropdown to populate
- Uses proper WebScrapingMixin method to read dropdown options
2025-01-20 12:22:16 +01:00
github-actions[bot]
46e585b96d chore: Update Python dependencies 2025-01-20 12:21:57 +01:00
sebthom
d4d5514cc0 fix: better commit message for dependency updates 2025-01-14 14:18:50 +01:00
kleinanzeigen-bot-tu[bot]
49ac8baf5c chore: Update bandit 1.8.0 -> 1.8.2 (#381)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-01-14 14:04:14 +01:00
kleinanzeigen-bot-tu[bot]
70aef618a0 chore: Update wrapt 1.17.0 -> 1.17.1 (#379)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-01-11 11:17:04 +01:00
sebthom
677c48628d fix: remove temporary workaround for #368 2025-01-10 16:21:44 +01:00
Heavenfighter
ca876e628b fix shipping options when downloading. Fixes #375 (#376) 2025-01-10 16:05:11 +01:00
github-actions[bot]
640b748b1d chore: Update Python dependencies 2025-01-10 12:30:24 +01:00
sebthom
6820a946c9 fix: escape metachars in ID and Names for selector queries #368 2025-01-09 21:14:13 +01:00
Heavenfighter
33a43e3ff6 fix: setting shipping options regression #367 (#374)
Button with given label occurs too often. Path must be corrected.
2025-01-09 20:30:24 +01:00
Heavenfighter
f9eb6185c7 fix: failed to set special attributes #334 (#370) 2025-01-09 17:01:48 +01:00
Heavenfighter
e590a32aa2 fix: re-publishing without images #371 (#372)
added detection of image-question
2025-01-09 17:00:51 +01:00
kleinanzeigen-bot-tu[bot]
7668026eda chore: Update setuptools 75.7.0 -> 75.8.0 (#369)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-01-09 17:00:15 +01:00
Heavenfighter
5829df66e4 fix setting shipping options #367 2025-01-09 16:59:38 +01:00