Last active
October 20, 2022 18:12
-
-
Save aleenprd/7937be359c649f19dda0203b9ff9e441 to your computer and use it in GitHub Desktop.
Get Ratings and Reviews Page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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