Quantcast
Channel: NETWORK ENGINEER BLOG
Viewing all articles
Browse latest Browse all 266

Python の requests モジュールについて

$
0
0
requests モジュールとは HTTP 通信ライブラリで、Web サイトの情報を収集することができます。 主に Beautiful Soup モジュールと組み合わせて、Web スクレイピングに使用されます。 実行例 コード import requests res = requests.get('https://automatetheboringstuff.com/files/rj.txt') print(res.text[:250]) 出力結果 The Project Gutenberg EBook of Romeo and Juliet, by William Shakespeare T…

Viewing all articles
Browse latest Browse all 266

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>