Skip to content

Instantly share code, notes, and snippets.

@zsmatrix62
Last active April 21, 2020 17:54
Show Gist options
  • Save zsmatrix62/cf216261ba0632e896b91f1685b65e7f to your computer and use it in GitHub Desktop.
Save zsmatrix62/cf216261ba0632e896b91f1685b65e7f to your computer and use it in GitHub Desktop.
media_page = f"https://www.imdb.com/title/{imdb_id}/mediaindex?ref_=tt_ov_mi_sm"
bs = bs4.BeautifulSoup(requests.get(self.media_page).content.decode(), features='lxml')
image_tags = bs.find_all("img", height='100', width='100')
img_srcs = [re.sub(r"(@|_V1)[A-Z\._\d,]+\.jpg", "@._V1_.jpg", t['src']) for t in image_tags]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment