This file contains hidden or 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
    
  
  
    
  | (async function scrapeAndDownloadFacebookProfiles() { | |
| const delay = ms => new Promise(resolve => setTimeout(resolve, ms)); | |
| const scrollPauseTime = 3000; // Delay between scrolls | |
| const scrollLimit = 50; // Safety limit for scrolling | |
| let previousHeight = 0; | |
| let scrollCount = 0; | |
| console.log("🔃 Scrolling page..."); | |
| while (scrollCount < scrollLimit) { | 
  
    
      This file contains hidden or 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
    
  
  
    
  | javascript:(function () { | |
| function processPage() { | |
| const groups = document.querySelectorAll('div[role="radiogroup"]'); | |
| let selected = 0; | |
| groups.forEach(group => { | |
| const label = Array.from(group.querySelectorAll('.q-radio__label')) | |
| .find(lbl => { | |
| const text = lbl.textContent.trim().toLowerCase(); | |
| return text === 'selalu' || text === 'sangat mampu'; | 
  
    
      This file contains hidden or 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 | |
| # === macOS/Linux Script === | |
| # Check if the virtual environment exists | |
| if [ ! -d "venv" ]; then | |
| echo "Creating virtual environment in the current directory..." | |
| python3 -m venv venv | |
| if [ $? -ne 0 ]; then | |
| echo "Failed to create virtual environment." | |
| exit 1 | 
  
    
      This file contains hidden or 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 time | |
| import subprocess | |
| import os | |
| from sys import platform | |
| try: | |
| from watchdog.observers import Observer | |
| from watchdog.events import PatternMatchingEventHandler | |
| except (ModuleNotFoundError, ImportError): | |
| print("watchdog module not found. Installing...") | 
  
    
      This file contains hidden or 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 | |
| from sys import platform | |
| try: | |
| import requests | |
| from bs4 import BeautifulSoup | |
| from PIL import Image | |
| except (ModuleNotFoundError, ImportError): | |
| if platform == "win32": | |
| os.system("pip install requests bs4 Pillow") | 
OlderNewer