简体   繁体   中英

How can I access data from my other PC that is continuously running a script?

I'll start with a general description of my goal, as I am not sure if I am even taking the best approach. I want to continuously pull data from a website (every 20 minutes), and use it in a separate application where a graph is displayed using the most recent data.

For the data fetching, I looked into using a virtual machine but ran into too many issues. I decided to just use my extra laptop to automatically run a script every 20 minutes. It would then save a csv file to OneDrive, which in theory, I would be able to access with my primary PC. However, I found that the csv file wouldn't update every time the script ran, and there were often discrepancies between the file on the secondary laptop and my primary PC. At one point, the file became corrupted and I am not sure how or why.

In short, I found that using OneDrive for nonlocal file access is not exactly ideal. I would greatly appreciate any advice or methods to complete my goal.

Make sure your script saves and closes the file after use. If a file handle is still open you might run into syncing issues.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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