for index, row in urls_df.head(2).iterrows(): print(f"Fetchiing URL: {row['url']}") api_output = fetch_metadata(row['url']) urls_df.loc[index, 'title'] = api_output['title'] urls_df.loc[index, 'description'] = api_output['site_name'] urls_df
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter