Click here to Skip to main content
15,949,741 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
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,
Posted
Comments
ZurdoDev 11-Jul-12 15:21pm    
There is a lot of code required to implement all of this. What have you done so far and what exactly did you need help with?
Member 8605349 11-Jul-12 16:29pm    
So far I creates a class. Loaded the page(Page_Load) with array of sites, method to insertREcord into sql database, method to process RSSItem and load data to sql DB.
What I need is either a tutorial and example code that shows me how to write a method that prevents duplicate postings from being entered into the database.
Also I need to see some code that shows me how to use a timer to activate the reader every so many minutes instead of running contiously.
Thank you.

1 solution

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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900