(async function executeInstagramPostCollection() {
console.log("Starting Instagram post collection...");
// Step 1: Scroll to the bottom of the page to load all content
await scrollToBottomAndLoadContent();
// Step 2: Scroll back to the top
await scrollToTop();
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
import os | |
os.environ["TF_CPP_MIN_LOG_LEVEL"] = "3" | |
import gc | |
import subprocess | |
import random | |
import numpy as np | |
import pandas as pd | |
import seaborn as sns | |
import matplotlib.pyplot as plt |
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
import os | |
os.environ["TF_CPP_MIN_LOG_LEVEL"] = "3" | |
import gc | |
import subprocess | |
import random | |
import numpy as np | |
import pandas as pd | |
import seaborn as sns | |
import matplotlib.pyplot as plt |
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
# https://stackoverflow.com/a/64006242/9292995 | |
# https://github.com/jfilter/split-folders | |
import splitfolders | |
# If your datasets is balanced (each class has the same number of samples), use ratio | |
# otherwise use fixed if dataset is imbalanced. | |
splitfolders.ratio('input_dir', output="output_dir", oversample=False, ratio = (0.8, 0.1, 0.1), | |
seed=1337) | |
# https://www.tensorflow.org/datasets/api_docs/python/tfds/folder_dataset/ImageFolder |
A simple breathing text animation.
A Pen by Tanner Dolby on CodePen.