使用任务并行库刮擦数据

发布于 2025-01-20 19:19:18 字数 131 浏览 2 评论 0原文

我正在使用任务并行库解析 html 页面并从网站中获取数据,我想使用实体框架将数据存储在 sqlite 中。我创建了服务器和crawlDb 类。我还创建了两种方法,即查询数据和插入数据。我的问题是我应该如何将数据存储在 sqlite 中并显示表数据

I am parsing html pages and scarping data from the websites using task parallel library, i want to store the data in sqlite using entity framework. I have created servers and a crawlDb class. i have also created two methods which are query data and insert data. My question is how should i store the data in sqlite and show table data

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

一笑百媚生 2025-01-27 19:19:18

IMO 这取决于您计划如何使用抓取的数据。现在您已经收集了抓取的数据。您必须将数据形成适当的结构,它可以是关系型的,也可以是非关系型的。既然您决定使用 sqllite,您可以看看是否可以将数据形成关系模型。首先,考虑一下您将如何使用这些数据。这是关键问题

IMO It depends on how you are planning to use the scraped data. Now you have a collection of scraped data. You have to form your data into a proper structure it could be relational or nonrelational. Since you have decided to go with sqllite you can see whether you can form your data into a relational model. First of all, think about how you are going to use this data. That's the key question

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文