Skip to content

Instantly share code, notes, and snippets.

@dardo82
Last active Aug 18, 2020
Embed
What would you like to do?
Kalee Carroll DLer
#!/usr/bin/env python
import sys
from selenium import webdriver as WD
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait as WDW
from selenium.webdriver.support import expected_conditions as EC
CO = WD.ChromeOptions()
CO.binary_location = sys.argv[2]
driver = WD.Chrome(options=CO)
driver.get(sys.argv[1])
WDW(driver,60).until(
EC.element_to_be_clickable(
(By.CSS_SELECTOR, ".button-download-slow"))).click()
WDW(driver,60).until(
EC.presence_of_element_located(
(By.LINK_TEXT, "this link")))
print(driver.page_source)
driver.quit()
#!/bin/sh
# Kalee Carroll DownLoader
SITE="https://xxxcollections.net/\
tag/kalee-carroll-sexxiebebe23/"
BROWSER="$(open -a "Google Chrome";\
pgrep -f -l "Google Chrome$" | cut -d" " -f2-)"
[ "$SITE" ] && LINKS=($(curl -v -L -m 2 "$SITE" \
| gawk -v FS='"' -v RS='<' \
'/vip/{getline; getline; \
getline; if($2~/^h/)print $2}'))
[ "$LINKS" ] && PAGE=$(curl -v ${LINKS[0]} \
| gawk -v FS='"' -v RS='<' \
'/xfile/{print $2}' | tail -n 1)
[ "$PAGE" ] && URL=$(${0%/*}/kc-dl.py "$PAGE" "$BROWSER" \
| gawk -v FS='"' -v RS='<' \
'/https.*mp4/{print $2}')
[ "$URL" ] && curl -v -o "${URL##*=}" "$URL"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment