Skip to content

Instantly share code, notes, and snippets.

@aleenprd
Last active October 20, 2022 18:12
Show Gist options
  • Save aleenprd/7937be359c649f19dda0203b9ff9e441 to your computer and use it in GitHub Desktop.
Save aleenprd/7937be359c649f19dda0203b9ff9e441 to your computer and use it in GitHub Desktop.
Get Ratings and Reviews Page
def get_ratings_page(episode_page: str, suffix: str="/ratings/?ref_=tt_ov_rt"):
return ("/").join(episode_page.split("/")[:-1]) + suffix
def get_reviews_page(episode_page: str, suffix: str="/reviews?ref_=tt_urv"):
return ("/").join(episode_page.split("/")[:-1]) + suffix
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment