防止将重复的rss提要复制到sql数据库 [英] preventing duplicate rss feeds to sql database
本文介绍了防止将重复的rss提要复制到sql数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在编写一个程序,该程序通过craigslist中的rss feed进行解析,并显示日期,标题,链接和描述,并将其写入sql数据库.
我有2个需要帮助的任务.
1.防止程序输入重复的数据.例如,somoene可能会在几分钟内多次重新发布其广告.
2.设置一个计时器,该计时器每隔10分钟自动上传一次数据.
谢谢您,
Hi,
I am writing a program that parses through rss feeds in craigslist and displays the date, title, link and description and writes it to sql database.
I have 2 taks that I need help with.
1. Prevent the program from entering duplicate data. For example, somoene might repost their ad more than once within a few minutes.
2. Set up a timer that automatically uploads the data every, say 10 minutes.
Thank you,
推荐答案
您坚持做什么?防止输入重复数据非常简单.一个计时器?您可以从外部引导该应用开始运行x分钟,如果它不需要持续/始终运行,这不是一个坏选择.
What are you stuck on? Preventing duplicate data from being entered is quite simple. A timer? You can steer the app from the outside to kick off ever x minutes, it''s not a bad option if it need not be persistent/always running.
这篇关于防止将重复的rss提要复制到sql数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文