2016-01-01から1ヶ月間の記事一覧

BeautifulSoupでhtmlをパーズ

(1)とりあえずのリンク抽出 http://www.crummy.com/software/BeautifulSoup/bs4/doc/ from bs4 import BeautifulSoup soup=BeautifulSoup(open("index.html")) #title print(soup.title.string) v=(soup.find_all('a')) for i in v: print(i['href']) (…

screenの使い方

チュートリアル http://wadap.hatenablog.com/entry/20080114/1200288402まず、設定 .screenrc を$HOMEディレクトリにおく autodetach on bell_msg "^G" defkanji utf-8 defencoding utf-8 encoding utf-8 utf-8 defscrollback 10000 escape ^Jj caption alw…

gitで重いファイルを削除

git

gitで重いファイル削除 http://qiita.com/go_astrayer/items/6e39d3ab16ae8094496c http://dskd.jp/archives/46.html http://www.d-wood.com/blog/2014/10/03_6965.html まずサイズを確認 git count-objects -v warning: garbage found: .git/objects/pack/t…

sftpでバッチ処理: 再帰ダウンロード(ディレクトリ以下のすべてのファイル)とレジューム

R

sftpでバッチ処理: 再帰ダウンロード(ディレクトリ以下のすべてのファイル)とレジューム(再開)できるようにする。 結論 mget -ar ディレクトリ名 基本 まず、基本 sftp -o "batchmode no" -b test.ftp username@xxx.xxx.xxx.xxx バッチファイル (1)…

Rで欠損値の可視化

R

Rで欠損値の可視化 http://www.r-bloggers.com/how-to-perform-a-logistic-regression-in-r/ library(Amelia) missmap(training.data.raw, main = "Missing values vs observed")