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
function watch() | |
{ | |
$file = $this->getAbsolutePath(); | |
$name = $this->getUploadedName(); | |
$mime_type = $this->getMimeType(); | |
/* | |
This function takes a path to a file to output ($file), |
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
from bs4 import BeautifulSoup | |
from urllib2 import urlopen | |
from time import sleep # be nice | |
import json | |
# insert any website you want | |
BASE_URL = "http://plasticscolor.com" | |
def make_soup(url): | |
html = urlopen(url).read() | |
return BeautifulSoup(html, "lxml") |