Guest User

Untitled

a guest
Jan 19th, 2019
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.76 KB | None | 0 0
  1. %WGLOC% http://stackoverflow.com/users/63550 %OUTFOLDER%SO.html
  2. %WGLOC% http://serverfault.com/users/5144 %OUTFOLDER%SF.html
  3. %WGLOC% http://superuser.com/users/517 %OUTFOLDER%SU.html
  4. %WGLOC% http://meta.stackoverflow.com/users/63550 %OUTFOLDER%mSO.html
  5. %WGLOC% http://sciencestack.com/users/81 %OUTFOLDER%SS.html
  6. %WGLOC% http://mathoverflow.net/users/2022 %OUTFOLDER%MO.html
  7.  
  8. echo. >> SOscores.txt
  9. echo ---------------------------------------------------------------- >> SOscores.txt
  10. echo State %date%T%time%: >> SOscores.txt
  11.  
  12. rem Note: the different aligment here is to make the output
  13. rem line up with current reputation values.
  14. perl -nle "print ' Stack Overflow ' . $1 . ' (no change)' if /s{20,99}([0-9,]{3,6})</div>/;" "%OUTFOLDER_RAW%SO.html" >> SOscores.txt
  15. perl -nle "print ' Server Fault ' . $1 . ' (no change)' if /s{20,99}([0-9,]{3,6})</div>/;" "%OUTFOLDER_RAW%SF.html" >> SOscores.txt
  16. perl -nle "print ' Super User ' . $1 . ' (no change)' if /s{20,99}([0-9,]{3,6})</div>/;" "%OUTFOLDER_RAW%SU.html" >> SOscores.txt
  17. perl -nle "print ' Meta Stack Overflow ' . $1 . ' (no change)' if /s{20,99}([0-9,]{3,6})</div>/;" "%OUTFOLDER_RAW%mSO.html" >> SOscores.txt
  18. perl -nle "print ' Science Stack ' . $1 . ' (no change)' if /s{20,99}([0-9,]{2,6})</div>/;" "%OUTFOLDER_RAW%SS.html" >> SOscores.txt
  19. perl -nle "print ' Math Overflow ' . $1 . ' (no change)' if /s{20,99}([0-9,]{1,6})</div>/;" "%OUTFOLDER_RAW%MO.html" >> SOscores.txt
  20. echo ---------------------------------------------------------------- >> SOscores.txt
  21.  
  22. rem Open result in default program for TXT files, e.g. UltraEdit.
  23. SOscores.txt
Add Comment
Please, Sign In to add comment