To get the params, I just followed the liked and copied everything after ‘?’. Ī general pattern could involve tools like requests or httpx to make a GET|POST request and then get the contents to io. From your example, namely Yahoo Finance, you can copy the Historical data link and call it in Pandas. There are multiple ways to get CSV data from URLs. If the link doesn't work (it probably won't you can just replace it with a link from ' ' (any other company too) and navigate to download csv and use that link. I have attached part of the dataframe below. ![]() My aim is to create a loop/ whatever works so that I can run one command that will allow me to download,read the csv and create a dataframe for each of the rows. ![]() I have a dataframe with a url column with a link that allows me to download a CSV for each link. I am new to python so need a little help here.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |