Skip to content

Instantly share code, notes, and snippets.

View yuru-sha's full-sized avatar

ゆる写 yuru-sha

View GitHub Profile
#! /usr/bin/env python
import argparse
import sys
import time
import uuid
from urllib2 import HTTPError
from cloudera.director.common.client import ApiClient
from cloudera.director.v10 import (AuthenticationApi, ClustersApi, InstanceTemplatesApi)
@yuru-sha
yuru-sha / sake.py
Last active April 18, 2019 15:14
酒造マップPDFのスクレイピング
# -*- coding: utf-8 -*-
import json
import os
from io import BytesIO
from bs4 import BeautifulSoup
from pdfminer.converter import HTMLConverter
from pdfminer.layout import LAParams
from pdfminer.pdfcolor import LITERAL_DEVICE_GRAY
from pdfminer.pdfcolor import LITERAL_DEVICE_RGB
#! /usr/bin/env python
import argparse
import sys
import time
import uuid
from urllib2 import HTTPError
from cloudera.director.common.client import ApiClient
from cloudera.director.v10 import (AuthenticationApi, ClustersApi, InstanceTemplatesApi)