I have a CSV that I read using pandas and looks like:
| URL | Status Code |
--------------- | ------------------|-------------|
0 | www.example.com | 404 |
----------------|-------------------|-------------|
1 | www.example.com/2 | 404 |
I want to check if the URLs on the second column are still responding with 404. I have this code:
url = df['URL']
urlData = requests.get(url).content
rawData = pd.read_csv(io.StringIO(urlData.decode('utf-8')))
print(rawData)
I get the following error:
InvalidSchema: No connection adapters were found for '0 http://www.example.com
Name: URL, dtype: object'
I searched several questions but could not find the answer. Any help is appreciated.