I'm trying to read a cvs file with pandas from google drive. Pandas gets it right when reading it from my computer, but when i try to read it from the url i got from google drive to share the file, it seems like it's reading something else, or google drive is doing something weird with the file... heres what i did:
alread_url = 'https://drive.google.com/file/d/1am7jNHA6Lewzws_K'
pd.read_csv(alread_url, squeeze=True, error_bad_lines=False)
b'Skipping line 6: expected 1 fields, saw 2\nSkipping line 7: expected 1 fields
\nSkipping line 25: expected 1 fields, saw 2\nSkipping line 42: expected 1 fields, saw
2\nSkipping line 43: expected 1 fields, saw 2... some more similar errors
And i get this as dataFrame
<!DOCTYPE html>
0 <html lang="en">
1 <head>
2 <meta charset="utf-8">
3 <meta name="google-site-verification" conten...
4 <title>Meet Google Drive – One place for all...
... ...
1647 <script type="text/javascript" nonce="3QmHtC...
1648 'https:\x2F\x2Faccounts.google.com\x2FPassiv...
1649 </script>
1650 </body>
1651 </html>
1652 rows × 1 columns
Another thing to say is that i ran this in a google colab notebook.... The main goal is to read csv's and xlsx files from google drive without downloading the files anywhere, so, if you know how to do that i don't really care if i can't solve this.
Edit: Here's the raw text pandas is trying to read as csv:
\n<!DOCTYPE html>\n<html lang="en">\n <head>\n <meta charset="utf-8">\n <meta content="width=300, initial-scale=1" name="viewport">\n <meta name="description" content="Google Drive is a free way to keep your files backed up and easy to reach from any phone, tablet, or computer. Start with 15GB of Google storage – free.">\n <meta name="google-site-verification" content="LrdTUW9psUAMbh4Ia074-BPEVmcpBxF6Gwf0MSgQXZs">\n <title>Meet Google Drive – One place for all your files</title>\n <style>\n @font-face {\n font-family: \'Open Sans\';\n font-style: normal;\n font-weight: 300;\n src: url(//fonts.gstatic.com/s/opensans/v15/mem5YaGs126MiZpBA-UN_r8OUuhs.ttf) format(\'truetype\');\n}\n@font-face {\n font-family: \'Open Sans\';\n font-style: normal;\n font-weight: 400;\n src: url(//fonts.gstatic.com/s/opensans/v15/mem8YaGs126MiZpBA-UFVZ0e.ttf) format(\'truetype\');\n}\n </style>\n <style>\n h1, h2 {\n -webkit-animation-duration: 0.1s;\n -webkit-animation-name: fontfix;\n