faster twitter parsing
This commit is contained in:
parent
1eb68b1bbc
commit
c71e761bab
@ -64,7 +64,9 @@ perform_and_exit export elist=\"`head -c -1 "$SCRIPTPATH/emoji-list.txt" | tr '\
|
||||
perform_and_exit echo "filter by emoji list:"
|
||||
perform_and_exit echo $elist | tr -d '"' | tr -d ','
|
||||
|
||||
perform_and_exit find ./ -type f -name '*.bz2' -exec bzip2 -dc "{}" \; | jq ". | {id: .id, datetime: .created_at, person: .user.name, text: .text} | select(.text != null) | [select(.text | contains($elist))] | select(any)| unique_by(.id) | .[]" | tee /dev/tty > "$OUTPUT"
|
||||
#perform_and_exit find ./ -type f -name '*.bz2' -exec bzip2 -dc "{}" \; | jq ". | {id: .id, datetime: .created_at, person: .user.name, text: .text} | select(.text != null) | [select(.text | contains($elist))] | select(any)| unique_by(.id) | .[]" | tee /dev/tty > "$OUTPUT"
|
||||
perform_and_exit find ./ -type f -name '*.bz2' -exec bzip2 -dc "{}" \; | jq ". | {id: .id, datetime: .created_at, person: .user.name, text: .text} | select(.text != null)" | grep --no-group-separator -Ff "$SCRIPTPATH/emoji-list.txt" -A 1 -B 4 | tee /dev/tty > "$OUTPUT"
|
||||
|
||||
# ↑ such obvious, much selfexplaining 💁😈
|
||||
|
||||
confirm_action
|
||||
|
Loading…
Reference in New Issue
Block a user