如何将网站中的实时数据检索到 c# winform 应用程序中? [英] How can I retrieve real time data from a website into c# winform app?

查看:28
本文介绍了如何将网站中的实时数据检索到 c# winform 应用程序中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在创建一个应该得到的 c# 程序:
1) 网站上的当前用户.
2)关于这些用户的一些基本信息.(Web 浏览器、位置).

I am creating a c# program that should get:
1) The current users on the web site.
2) Some basic info about those users. (Web browser, location).

如何通过 C# 从网站检索该数据?
(我以为我可以上传一个 php/aspx 文件,该文件会将这些数据保存到一个 txt 文件中,而 c# 将下载该数据并显示它) - 有没有更简单的方法来做到这一点?或者更好的方法?

How can I retrieve that data from a web site via C#?
(I thought that I could upload a php/aspx file that will save that data to a txt file, and c# will download that data and show it) - is there a more simple way of doing this? or rather a better way?

推荐答案

这是一个非常开放的问题,您可以通过多种方式解决这个问题.

This is a very open question there are many ways you can go about this.

为什么不直接向您的站点添加一个分析包(那里有很多免费的包),然后如果您愿意,您可以编写一个 C# 程序来连接到分析 API 并下载数据.

Why not just add an analytics package to your site (there are many free ones out there) and then if you wanted you could write a C# program to hook into the analytics API and download the data.

这篇关于如何将网站中的实时数据检索到 c# winform 应用程序中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆