View get_itemsets.py
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
import fileinput | |
import json | |
import urllib2 | |
def main(): | |
submit_object = { | |
"threshold": 12, | |
"documents": [] | |
} |
View kdcrawler.py
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 | |
import urllib2 | |
import json | |
import time | |
mm = ['01', '02', '03', '04', '05', '06', '07', '08', '09', '10', '11', '12'] | |
def extract_tags(url): | |
""" This function extracts any "tag" links from a url. """ | |
f = urllib2.urlopen(url) |
View get-slides.py
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
import hashlib | |
import requests | |
import sys | |
import time | |
def main(): | |
# Extract the keyword to search as the command-line argument | |
keyword = ' '.join(sys.argv[1:]) | |
# Set up the auth for the request |