hi
I am trying  to write an application that checks a web page today and
again checks it after somedays and compares them.For this purpose I
need to store the page data on these 2 occassions in my program  .

How can I do this?I can get the page data of current moment as a
string using urllib.urlopen and store it in a variable, say
current_page_data.But ,how do I store yesterday's data so that I can
compare the two?Do I need to store it as a field in database?(I am not
very familiar with database programming..I am using postgres for web
app development with django.So I don't know if storing such a large
string like that is possible).

I considered writing the data to a file..but suppose a lot of users
want to do the comparison of 2 versions of many pages..?I would be
creating so many files =usercount * number_of_url_by_each_user  .If
the time duration between 2 comparisons was some seconds/minutes then
I can just use 2 local variables andmay not need persistence.But ,to
compare data of yesterday and today  I may need some such mechanism..
I guess this may be  a common problem and there may some solution for
this.
Can someone comment/suggest how this can be done?
thanks
jim

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to