Skip to content

fix(extract_movie_popular_reviews): Fix extract_rating, add extract_review_likes - #189

Open
Investigamer wants to merge 2 commits into
nmcassa:mainfrom
Investigamer:main
Open

fix(extract_movie_popular_reviews): Fix extract_rating, add extract_review_likes#189
Investigamer wants to merge 2 commits into
nmcassa:mainfrom
Investigamer:main

Conversation

@Investigamer

@Investigamer Investigamer commented Aug 14, 2026

Copy link
Copy Markdown

What this PR does:

  • Replaces the current extraction pattern for collecting the star rating of a review. This rating is returned as a float value 0-5 if the element is found, otherwise None. It does this by counting the stars and half stars exposed by the aria-label of the SVG.
  • Adds a new field to review data: "likes". The amount of likes a review has is neatly exposed in a "data-count" attribute of a <p> element in every review. This value is returned as an integer if present, otherwise as None.
  • Adds return type to a few existing nested functions

I've tested this methodology against several movie pages, haven't encountered a failure thus far :) Would very much like to see this minor improvement checked into the project, if at all possible. Thanks!

…eview_likes.

Signed-off-by: Investigamer <dev@hexproof.io>
@fastfingertips fastfingertips self-assigned this Aug 15, 2026
@fastfingertips fastfingertips added the testing-needed Features or changes that require testing label Aug 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

testing-needed Features or changes that require testing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants