for index, row in urls_df.head(2).iterrows():
print(f"Fetchiing URL: {row['url']}")
api_output = fetch_metadata(row['url'])
title = api_output[0]
description = api_output[1]
urls_df.loc[index, 'title'] = title
urls_df.loc[index, 'description'] = description
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