Spent the other night sucking a friend's toes while she texted with another guy. Heaven! Read more
Python script for downloading image galleries
This is a simple Python script that will download all images from a specified image gallery into a folder with the gallery id (e.g., 252306). Requires Python 2.7 and the BeautifulSoup package. Indenting spaces don't seem to show up here, so you'll need to strip out the # before each line. #from bs4 import BeautifulSoup #import urllib #import re #import os # ## Set this to the URL of the image gallery #url = "http://xhamster.com/photos/gallery/252306/looking_up.html" # #def getBase(link): # imgpage = BeautifulSoup(urllib.urlopen(link['href'])) # imgs = imgpage.find_all(src= Read more
Posted by
massivenutsack
9 years ago