I've imported a list of websites from csv file. I then checked every website to see if this is developed in wordpress or not. Now, I wanted to export wordpress status of every websited as 'Yes' or 'No' into a csv. From this code I could get status as either all 'Yes' or all 'No'. It returns the wordpress status of last runned website as the wordpress status of all websites. E.g: If wordpress status of last runned website is 'Yes' then status of all websites in csv is 'Yes'.
`wpLoginCheck = requests.get(websiteToScan + '/wp-login.php', headers=user_agent)
        print(f"wpLoginCheck: {wpLoginCheck}")
        if wpLoginCheck.status_code == 200:
            df['Status'] = 'Yes'
            df.to_csv('updated.csv', index=False)
        else:
            print ("Not detected")
            df['Status'] = 'No'
            df.to_csv('updated.csv', index=False)`
 
     
     
    