fname = "url.txt" with open(fname) as f: for line in f: contents = requests.get(line) time.sleep(1.5) 関連記事 投稿ナビゲーション Pythonで範囲を指定して乱数を生成[Python][Numpy] Pythonでhtmlのファイルを読み込む方法[Python][Beautifulsoup]