Roadmap:
- Dump index from es using elasticdump
- Convert to csv using json2csv
(optional) - Extract one column using csvtool
- Visualize the data using VisData
# Init | |
$ git clone https://github.com/pistocop/subreddit-comments-dl.git | |
$ cd subreddit-comments-dl | |
$ pip install -r requirements.txt | |
# Download the AskReddit comments of the last 30 submissions | |
$ python src/subreddit_downloader.py AskReddit --batch-size 10 --laps 3 --reddit-id <reddit_id> --reddit-secret <reddit_secret> --reddit-username <reddit_username> | |
# Download the News comments after 1 January 2021 | |
$ python src/subreddit_downloader.py AskReddit --batch-size 512 --laps 3 --reddit-id <reddit_id> --reddit-secret <reddit_secret> --reddit-username <reddit_username> --utc-after 1609459200 |
# Code from stack overflow: https://askubuntu.com/questions/1162223/lenovo-18-04-no-wi-fi-adapter-found | |
sudo apt-get update && sudo apt-get install build-essential git dkms | |
git clone https://github.com/tomaspinho/rtl8821ce | |
cd rtl8821ce | |
chmod +x dkms-install.sh | |
chmod +x dkms-remove.sh | |
sudo ./dkms-install.sh | |
sudo modprobe 8821ce |
Roadmap:
# Example of two rows from WhatsApp exported data: | |
# 12/12/19, 02:09 - Alice: bla bla bla bla | |
# 12/12/19, 08:40 - bob: bla bla bla bla | |
whatsapp_user_name = "bob" # <--- your name, extracted from Whatsapp data | |
whatsapp_datetime_format = "%m/%d/%y, %H:%M" # <-- American format used (MDY) | |
telegram_datetime_format = "%Y-%m-%dT%H:%M:%S" # <-- keep because Telegram don't change |
come | |
io | |
il suo | |
che | |
lui | |
era | |
per | |
su | |
sono | |
con |
docker run -p 3306:3306 --name my-mysql -e MYSQL_ROOT_PASSWORD=my-secret-pw -d mysql:latest |