回答編集履歴
2
追記
answer
CHANGED
|
@@ -19,4 +19,5 @@
|
|
|
19
19
|
```
|
|
20
20
|
◇参考情報
|
|
21
21
|
0. [【Python3】ログイン機能付サイトでスクレイピング【requests】【BeautifulSoup】](https://qiita.com/shunyooo/items/36af8bcb501baf8c7014)
|
|
22
|
-
0. [セッションの利用](https://www.yoheim.net/blog.php?q=20170802)
|
|
22
|
+
0. [セッションの利用](https://www.yoheim.net/blog.php?q=20170802)
|
|
23
|
+
0. [例示/実験用として利用できるドメイン名](http://www.atmarkit.co.jp/fwin2k/win2ktips/801exampledom/exampledom.html)
|
1
URLを例示ドメイン(example)に変更
answer
CHANGED
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
s = requests.Session()
|
|
15
|
-
|
|
15
|
+
URL = "https://example.co.jp/login"
|
|
16
16
|
response = s.post(URL, data=post)
|
|
17
17
|
print(response.text)
|
|
18
18
|
|