Skip to content

0.3.6

Choose a tag to compare

@dotvav dotvav released this 09 Sep 09:36
· 9 commits to main since this release

Features & Improvements

  • Native user_id Extraction in Message:

  • Message.from_lxml now automatically parses the numeric author user_id from /hfr/profil-<id>.htm anchor links in the message toolbar.

  • Added user_id field to Message with full serialization support in to_dict() and from_dict().

  • Updated Message.quote() to default to self.user_id, generating authentic MesDiscussions [quotemsg=message_id,user_id,0] BBCode tags.

  • Direct Post Lookup & Quote Helpers:

  • Added HFRClient.get_post_by_id(cat, subcat, post, msg_id) to fetch a specific post and its surrounding page directly using the numreponse query parameter.

  • Added bb.extract_parent_quote_ids(bbcode_text) utility to extract all referenced post IDs from [quotemsg=ID,...] tags.

Testing & Quality

  • Added tests/test_message.py covering HTML DOM parsing, user_id extraction, and BBCode quote formatting.

Full Changelog: v0.3.4...v0.3.6