View Single Post
Old 05-03-2022, 11:31 AM   #1
unkn0wn
Guru
unkn0wn understands the Henderson-Hasselbalch Equation.unkn0wn understands the Henderson-Hasselbalch Equation.unkn0wn understands the Henderson-Hasselbalch Equation.unkn0wn understands the Henderson-Hasselbalch Equation.unkn0wn understands the Henderson-Hasselbalch Equation.unkn0wn understands the Henderson-Hasselbalch Equation.unkn0wn understands the Henderson-Hasselbalch Equation.unkn0wn understands the Henderson-Hasselbalch Equation.unkn0wn understands the Henderson-Hasselbalch Equation.unkn0wn understands the Henderson-Hasselbalch Equation.unkn0wn understands the Henderson-Hasselbalch Equation.
 
Posts: 631
Karma: 85520
Join Date: May 2021
Device: kindle
Foreign affairs cover fails

Quote:
self.cover_url = soup.find(**classes('subscribe-callout-image'))['data-src'].split("|")[-1]
self.cover_url = self.cover_url.split('?')[0]
self.cover_url = self.cover_url.replace('_webp_issue_small_2x', '_webp_issue_large_2x')
https://github.com/kovidgoyal/calibr...affairs.recipe

removed line 156 and changed 157 replace tags (or just replace('small', 'large')

https://cdn-live.foreignaffairs.com/...over_large.jpg .webp ? itok=LUFlkUCK

if we remove .webp link is not working..

Last edited by unkn0wn; 05-03-2022 at 11:33 AM.
unkn0wn is offline   Reply With Quote