Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Friday, October 16, 2026

Diff for scripts/shell/zoznamka-fun/pokec/get-data.sh between version 1.1 and 1.2

version 1.1, 2007/12/17 11:36:24 version 1.2, 2007/12/20 16:29:21
Line 12 
Line 12 
 # 2007-12-13 - created  # 2007-12-13 - created
 #  #
   
 # $Platon$  # $Platon: scripts/shell/zoznamka-fun/pokec/get-data.sh,v 1.1 2007-12-17 11:36:24 nepto Exp $
   
 datafile="pokec.txt";  datafile="pokec.txt";
 I9="36f4f10ed709";  I9="777aa9afc309";
 USER_AGENT="Mozilla/5.0"  USER_AGENT="Mozilla/5.0"
 COOKIE="uniqId=1187347886_46c57dae390b0; AZetSecId=393f42a15e; mojnick=podnikatel77; bSession=5e98d7e12312f9cc47206ae2f088bfdc; sSession=21c6ec36e57bf63f603743c8a4e2462d";  COOKIE="uniqId=1187347886_46c57dae390b0; AZetSecId=393f42a15e; bSession=5e98d7e12312f9cc47206ae2f088bfdc; sSession=21c6ec36e57bf63f603743c8a4e2462d";
 export I9 USER_AGENT COOKIE;  export I9 USER_AGENT COOKIE;
   
 #source get-nick-type2.sh 2374963 # muz (special)  #source get-nick-type2.sh 2374963 # muz (special)
   #source get-nick-type2.sh 8019553 # zena
 #exit;  #exit;
   
 wget -O - \  wget -O - \
Line 28  wget -O - \
Line 29  wget -O - \
 --header "Cookie: $COOKIE" \  --header "Cookie: $COOKIE" \
 "http://pokec.azet.sk/2/getpokecData.phtml?i9=$I9" \  "http://pokec.azet.sk/2/getpokecData.phtml?i9=$I9" \
 2>/dev/null \  2>/dev/null \
   | grep -E -v '^<a.*</a>' \
 | sed 's/*>/|/g' \  | sed 's/*>/|/g' \
 | ( \  | ( \
         write="";          write="";
         while read line; do \          while read line; do \
                 dttm="` echo \"$line\" | cut -f 1 -d \"|\" `";                  dttm="` echo \"$line\"   | cut -f 1 -d \"|\" | sed 's/^\s*//g' `";
                 userid="` echo \"$line\" | cut -f 2 -d \"|\" `";                  userid="` echo \"$line\" | cut -f 2 -d \"|\" | sed 's/^\s*//g' `";
                 nick="` echo \"$line\" | cut -f 3 -d \"|\" `";                  nick="` echo \"$line\"   | cut -f 3 -d \"|\" | sed 's/^\s*//g' `";
                 msg="` echo \"$line\" | cut -f 6 -d \"|\" `";                  msg="` echo \"$line\" | cut -f 6 -d \"|\" `";
                 age="` source get-nick-type2.sh \"$userid\" `"; \                  age="` source get-nick-type2.sh \"$userid\" `"; \
                 logline="$dttm $age $nick $msg";                  logline="$dttm $age $nick $msg";
                 if [ -n "$age" ]; then \                  echo "$logline";
                   if [ -n "$age" -a "$age" != "XX" ]; then \
                         if [ -z "$write" ]; then                          if [ -z "$write" ]; then
                                 grepline="` grep \"^$dttm $age $nick\" \"$datafile\" 2>/dev/null `";                                  grepline="` grep '^$dttm $age $nick' \"$datafile\" 2>/dev/null `";
                                 if [ -z "$grepline" ]; then                                  if [ -z "$grepline" ]; then
                                         #echo "ZEROLINE: $logline";                                          #echo "ZEROLINE: $logline";
                                         write="YES";                                          write="YES";

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top