Upgrade to Pro — share decks privately, control downloads, hide ads and more …

スクレイピングを(ちょっと)楽したい技術

Aipa
November 02, 2018

 スクレイピングを(ちょっと)楽したい技術

スクレイピングを(ちょっと)楽したい技術

Aipa

November 02, 2018
Tweet

More Decks by Aipa

Other Decks in Technology

Transcript

  1. 6TBHF 1 from trimmer_py.trimmer_py import search_max_score_tag 2 from urllib import

    request 3 4 if __name__ == '__main__': 5 url = 'http://teenssexandwarmode.hatenablog.com/entry/2018/10/10/042129' 6 with request.urlopen(url) as f: 7 html = f.read() 8 # return bs4 object. 9 t = search_max_score_tag(html) 10 print(t.text)