Skip to content

Instantly share code, notes, and snippets.

View mjlavin80's full-sized avatar

Matthew Lavin mjlavin80

View GitHub Profile
@mjlavin80
mjlavin80 / login-example
Created December 10, 2015 10:05 — forked from bkdinoop/login-example
Flask-Login : login.py created by https://github.com/maxcountryman : Matthew Frazier
# -*- coding: utf-8 -*-
"""
Flask-Login example
===================
This is a small application that provides a trivial demonstration of
Flask-Login, including remember me functionality.
:copyright: (C) 2011 by Matthew Frazier.
:license: MIT/X11, see LICENSE for more details.
"""
@mjlavin80
mjlavin80 / horoscopescrape.py
Created December 8, 2015 15:10 — forked from th0ma5w/horoscopescrape.py
Example of Generating URLs for downloading
"""
Creates a list of URLs to stdout based on repeating patterns found in the site, suitable for use with WGET or CURL.
"""
import datetime
scopes=[
"aries",
"taurus",
@mjlavin80
mjlavin80 / extract_horoscope.py
Created December 8, 2015 15:10 — forked from th0ma5w/extract_horoscope.py
extract context from downloaded html files
"""
Example of using the old BeautifulSoup API to extract content from downloaded html files into CSV... if you're doing this sort of thing today, I recommend using the newer lxml interface directly, but lxml also has a BeautifulSoup compatibility layer.
"""
import os