質問編集履歴
6
画像削除しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -193,10 +193,7 @@
|
|
193
193
|
</div>
|
194
194
|
|
195
195
|
```
|
196
|
-

|
197
196
|
|
198
|
-

|
199
|
-
|
200
197
|
もし分かる方がいましたら、教えていただけると幸いです。
|
201
198
|
|
202
199
|
お手数ですが、よろしくお願い致します。
|
5
APPLEのテキストボックスのHTMLの詳細画像を追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -34,8 +34,6 @@
|
|
34
34
|
from selenium.webdriver.chrome.options import Options
|
35
35
|
from selenium.webdriver.support.select import Select
|
36
36
|
from selenium.webdriver.remote.webelement import WebElement
|
37
|
-
#from datetime import datetime as dt, date, timedelta
|
38
|
-
import pyautogui
|
39
37
|
from bs4 import BeautifulSoup
|
40
38
|
|
41
39
|
#headless background
|
@@ -45,8 +43,6 @@
|
|
45
43
|
#Getting Default Adapter failed error message
|
46
44
|
option.add_experimental_option('excludeSwitches', ['enable-logging'])
|
47
45
|
|
48
|
-
#strDate = dt.now().strftime("%Y%m%d")
|
49
|
-
|
50
46
|
URL= "https://www.example.com/landing/jp/signin/"
|
51
47
|
|
52
48
|
# ブラウザを開く。 #options=option background
|
@@ -199,6 +195,7 @@
|
|
199
195
|
```
|
200
196
|

|
201
197
|
|
198
|
+

|
202
199
|
|
203
200
|
もし分かる方がいましたら、教えていただけると幸いです。
|
204
201
|
|
4
コメントをクリックする際のHTMLの詳細画像を追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -197,9 +197,9 @@
|
|
197
197
|
</div>
|
198
198
|
|
199
199
|
```
|
200
|
+

|
200
201
|
|
201
202
|
|
202
|
-
|
203
203
|
もし分かる方がいましたら、教えていただけると幸いです。
|
204
204
|
|
205
205
|
お手数ですが、よろしくお願い致します。
|
3
コードを修正しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -94,7 +94,7 @@
|
|
94
94
|
|
95
95
|
#top post click 特定の文字を含んでいる場合、コメントボックスをクリック
|
96
96
|
toppost = driver.find_element_by_xpath(found*[contains(text(),'APPLE')])
|
97
|
-
toppost.
|
97
|
+
toppost.click()
|
98
98
|
|
99
99
|
|
100
100
|
# #top post click こちらだと問題なくコメントボックスクリックできるが、特定の文字がある場合クリックできません。
|
2
用語が間違っていたので修正しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
seleniumとBeautifulSoupを使って、**APPLE**用語を含んでいる
|
2
2
|
特定のサイトへコメントをクリックしたいです。
|
3
3
|
その後はコメントする処理したいです。
|
4
4
|
|
1
HTMLの内容変更しました。
title
CHANGED
File without changes
|
body
CHANGED
@@ -189,7 +189,7 @@
|
|
189
189
|
</div>
|
190
190
|
</div>
|
191
191
|
<div class="article-profile flex-rel ellip-1">
|
192
|
-
<div class="fn-user-name member-name selectable cursor_pointer fn-13 _profileName _user">
|
192
|
+
<div class="fn-user-name member-name selectable cursor_pointer fn-13 _profileName _user">TA bot<span class="member-state-meessage"></span></div>
|
193
193
|
|
194
194
|
<div class="article-date fn-11">
|
195
195
|
<span class="ng-binding">2021/11/03 12:23</span>
|