This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Inspired by https://gist.github.com/shaneapen/3406477b9f946855d02e3f33ec121975 | |
The script scrapes the members of a WhatsApp group chat and exports the data to a CSV file. | |
It scrolls automatically and extracts each list item in the members list with all the information available. | |
Then it joins this information with the indexedDB data to get the groups the member is in and if the contact's info | |
if it is already saved in the phone. | |
Steps: | |
1. Open WhatsApp Web |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -o nounset | |
set -o errexit | |
set -o pipefail | |
function get_route_device() { | |
ip route get "${1}" | grep -Po '(?<=dev\s)[\w-]+' | cut -f1 -d ' ' | |
} |