テックアイエスガイド エディター
無料プログラミング体験会の予約
実行
1
2
3
4
5
6
7
import requests
#the required first parameter of the 'get' method
is the 'url':
x = requests.get('https://w3schools.com/python/dem
opage.htm')
#print the response text (the content of the reque
sted file):
print(x.text)