You are viewing a single comment's thread. Return to all comments →
Bash
#!/bin/bash readarray myArray for line in "${myArray[@]}"; do if [[ $line =~ question ]] || [[ $line =~ relativetime ]]; then echo "$line" | grep -E -o '(questions\/\d+\/)|(question-hyperlink">.+<\/a>)|(relativetime">.+<)'| tr -d '\n' | sed 's/question-hyperlink">/;/; s/<\/a>/;/; s/relativetime">//; s/</\n/; s/questions\///; s/\///' fi done
Seems like cookies are disabled on this browser, please enable them to open this website
Build a Stack Exchange Scraper
You are viewing a single comment's thread. Return to all comments →
Bash