Advertisement
golim22

Untitled

Feb 15th, 2022
1,488
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.38 KB | None | 0 0
  1. #!/bin/zsh
  2.  
  3. PAGE_BASE="$1"
  4. PAGE_BEGIN="$2"
  5. PAGE_END="$3"
  6.  
  7. for page in $(seq $PAGE_BEGIN $PAGE_END); do
  8.     curl "$PAGE_BASE$page" -H 'x-requested-with: XMLHttpRequest' --compressed --silent | \
  9.         hxnormalize -x | \
  10.         hxselect -s "\n" "div.forum-profile__content-block-active-block > div > p > a:nth-child(1)::attr(href)" | \
  11.         sed "s/[^0-9]\+//g"
  12. done
  13.  
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement