Mar-21-2021, 03:08 AM
I have a python scraper for ranker.com. It scrapes the name and image url from the site.
import requests import pandas as pd from pandas import DataFrame #Check "ListID" for api id r = requests.get('https://api.ranker.com/lists/538997/items?limit=100') data = r.json()['listItems'] for i in data: print(i['name'], i['image'])I wanted this output to be saved into a ranks excel file. I dont have much experience with python. Hence, can someone please help me with the excel part of the code. Thank you