We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2be17e6 commit a9635e1Copy full SHA for a9635e1
test2.py
@@ -0,0 +1,23 @@
1
+from selenium import webdriver
2
+import time
3
+driver = webdriver.Firefox(executable_path='drivers/geckodriver') #mozilla için geckodiriver
4
+# chrome ile kullanılacaksa chromedriver olması gereki
5
+#internetten ndirilip path içine atılmalı
6
+
7
8
+#bir dosyadan adres okuyup sayfa sourrce code almak
9
+dosya = open("new2.txt","r")
10
+siteler = dosya.readlines()
11
12
+time.sleep(5)
13
14
+sonuc = open("sonuc.txt", "w")
15
16
+for i in siteler:
17
+ print(i)
18
+ time.sleep(1)
19
+ driver.get("https://www.google.com/search?source=hp&ei=oK9aXYyIEcX66QSM4regDw&q=mail+%40+{}&oq".format(i))
20
+ time.sleep(2)
21
+ sonuc.write(driver.page_source)
22
23
+sonuc.close()
0 commit comments