code_junkie

Getting a full list of the URLS in a rails application

Nov 10th, 2011
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.63 KB | None | 0 0
  1. $ wget --spider -r -nv -nd -np http://localhost:3209/ 2>&1 | ack -o '(?<=URL:)S+'
  2. http://localhost:3209/
  3. http://localhost:3209/robots.txt
  4. http://localhost:3209/agenda/2008/08
  5. http://localhost:3209/agenda/2008/10
  6. http://localhost:3209/agenda/2008/09/01
  7. http://localhost:3209/agenda/2008/09/02
  8. http://localhost:3209/agenda/2008/09/03
  9. ^C
  10.  
  11. # --spider don't download anything.
  12. # -r, --recursive specify recursive download.
  13. # -nv, --no-verbose turn off verboseness, without being quiet.
  14. # -nd, --no-directories don't create directories.
  15. # -np, --no-parent don't ascend to the parent directory.
Add Comment
Please, Sign In to add comment