使用任务并行库刮擦数据
我正在使用任务并行库解析 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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
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