Skip to content

Instantly share code, notes, and snippets.

@presto8
presto8 / GetYahooPics.py
Created November 16, 2019 21:50 — forked from nbhasker/GetYahooPics.py
Python + Selenium Script to download pictures from a Yahoo group
from selenium import webdriver
import time
driver = webdriver.Chrome("drivers\chromedriver.exe")
driver.set_page_load_timeout(10)
driver.get("https://groups.yahoo.com/neo/groups/oresis_alumni/photos/photostream")
time.sleep(30)
n = 1
@presto8
presto8 / python-less-pager.py
Last active January 17, 2021 20:12 — forked from gesquive/python-less-pager.py
Use less to page output
import subprocess
import sys
import os
def output_to_pager(text, command=None):
if not sys.stdout.isatty():
for line in text:
sys.stdout.write(line + os.linesep)
return