Advertisement
metalx1000

Web Scraping HTML and JSON

Jan 15th, 2025
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.52 KB | None | 0 0
  1.  
  2. # Nice JSON output
  3. url="https://filmsbykris.com/scripts/2024/webscraping/login/userlist.json"
  4. wget --user neo --password password "$url" -qO-|jq -r '.results[]|.name.last + " - " +.location.state'
  5.  
  6. # scraping HTML
  7. url="https://filmsbykris.com/scripts/2024/webscraping/login/user_list_1.html"
  8. wget -qO- --user neo --password password "$url"| grep "job_post"
  9.  
  10. wget -qO- --user neo --password password "https://filmsbykris.com/scripts/2024/webscraping/login/user_list_1.html"|grep -B 1 -A 2 "job_post"|sed -e 's/<[^>]*>//g'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement