简体   繁体   English

使用 xlwing 将 web 抓取数据保存到 excel?

[英]Save web scraping data to excel using xlwing?

firstly i am just newbie to coding anything.首先,我只是编码任何东西的新手。 I have an python script which extracts data from stock exchange web page and saves it to csv by pandas dataframe. I have an python script which extracts data from stock exchange web page and saves it to csv by pandas dataframe. But the issue is i cant open csv while it is being written so i searched and found xlwings can do the job but i dont to know how to do it.但问题是我在编写 csv 时无法打开它,所以我搜索并发现 xlwings 可以完成这项工作,但我不知道该怎么做。 i just want that data to be saved in test.xlsx file and keep getting refreshed.我只想将该数据保存在 test.xlsx 文件中并不断刷新。 Please can anyone look into it.请任何人都可以调查一下。 here is my code.这是我的代码。

link to my code https://drive.google.com/file/d/1y3gVPJX8xEcsH_tLSllFspVlCYB_Bfjp/view?usp=sharing链接到我的代码https://drive.google.com/file/d/1y3gVPJX8xEcsH_tLSllFspVlCYB_Bfjp/view?usp=sharing

firstly i am just newbie to coding anything.首先,我只是编码任何东西的新手。 I have an python script which extracts data from stock exchange web page and saves it to csv by pandas dataframe. I have an python script which extracts data from stock exchange web page and saves it to csv by pandas dataframe. But the issue is i cant open csv while it is being written so i searched and found xlwings can do the job but i dont to know how to do it.但问题是我在编写 csv 时无法打开它,所以我搜索并发现 xlwings 可以完成这项工作,但我不知道该怎么做。 i just want that data to be saved in test.xlsx file and keep getting refreshed.我只想将该数据保存在 test.xlsx 文件中并不断刷新。 Please can anyone look into it.请任何人都可以调查一下。 here is my code.这是我的代码。

link to my code https://drive.google.com/file/d/1y3gVPJX8xEcsH_tLSllFspVlCYB_Bfjp/view?usp=sharing链接到我的代码https://drive.google.com/file/d/1y3gVPJX8xEcsH_tLSllFspVlCYB_Bfjp/view?usp=sharing

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM