Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env python
# coding: utf-8
import twitter
import tw_key
CONSUMER_KEY = tw_key.twdict['cons_key']
CONSUMER_SECRET = tw_key.twdict['cons_sec']
ACCESS_TOKEN_KEY = tw_key.twdict['accto_key']
ACCESS_TOKEN_SECRET = tw_key.twdict['accto_sec']
@hironow
hironow / urltopdf.sh
Last active December 20, 2015 01:19
出力されるPDFファイルは連番でURLを並べたファイルを渡して実行します.ブログ: http://hironow.bitbucket.org/blog/html/2013/07/15/url_to_pdf_script.html
#!/bin/bash
if [ $# -ne 1 ]; then
echo "Error: only one input file is allowed"
exit 1
else
echo "Input: $@"
FILE_NUM=1
for URL in `cat $1`
do