Skip to content

Commit b1cd594

Browse files
authored
Merge pull request #25 from swaaz/bug
bug fixed
2 parents b1ede34 + 42d9911 commit b1cd594

3 files changed

Lines changed: 29 additions & 0 deletions

File tree

__pycache__/secrets.cpython-38.pyc

-21 Bytes
Binary file not shown.

geckodriver.log

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2224,3 +2224,29 @@ JavaScript error: , line 0: UnknownError: The operation failed for reasons unrel
22242224
Invalid port. Exiting...
22252225
Invalid port. Exiting...
22262226
Invalid port. Exiting...
2227+
1596296782033 mozrunner::runner INFO Running command: "/usr/bin/firefox" "-marionette" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofileI001wh"
2228+
console.error: SearchCache: "_readCacheFile: Error reading cache file:" (new Error("", "(unknown module)"))
2229+
1596296783892 Marionette INFO Listening on port 46293
2230+
1596296783939 Marionette WARN TLS certificate errors will be ignored for this session
2231+
console.error: services.settings:
2232+
Message: TypeError: NetworkError when attempting to fetch resource.
2233+
Stack:
2234+
timedFetch/<@resource://services-common/kinto-http-client.js:549:22
2235+
timedFetch@resource://services-common/kinto-http-client.js:527:20
2236+
request@resource://services-common/kinto-http-client.js:613:41
2237+
execute@resource://services-common/kinto-http-client.js:2400:44
2238+
_fetchChangeset@resource://services-settings/RemoteSettingsClient.jsm:1036:22
2239+
_importChanges@resource://services-settings/RemoteSettingsClient.jsm:888:20
2240+
maybeSync@resource://services-settings/RemoteSettingsClient.jsm:593:35
2241+
2242+
1596297174278 Marionette INFO Stopped listening on port 46293
2243+
1596297175746 mozrunner::runner INFO Running command: "/usr/bin/firefox" "-marionette" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofilee2Iw0p"
2244+
console.error: SearchCache: "_readCacheFile: Error reading cache file:" (new Error("", "(unknown module)"))
2245+
1596297177231 Marionette INFO Listening on port 39381
2246+
1596297177250 Marionette WARN TLS certificate errors will be ignored for this session
2247+
1596299245736 Marionette INFO Stopped listening on port 39381
2248+
1596299251088 mozrunner::runner INFO Running command: "/usr/bin/firefox" "-marionette" "-foreground" "-no-remote" "-profile" "/tmp/rust_mozprofilel4Bfoy"
2249+
console.error: SearchCache: "_readCacheFile: Error reading cache file:" (new Error("", "(unknown module)"))
2250+
1596299252600 Marionette INFO Listening on port 38337
2251+
1596299252695 Marionette WARN TLS certificate errors will be ignored for this session
2252+
1596299496567 Marionette INFO Stopped listening on port 38337

program.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@ def get_unfollowers(self):
9898
self.driver.find_element_by_xpath("//a[contains(@href,'/followers')]").click()
9999
followers = self._get_names()
100100
not_following_back = [user for user in following if user not in followers]
101+
sleep(2)
101102
print("\n****** Unfollowers ******\n")
102103
prev = " "
103104
count = 0
@@ -120,6 +121,7 @@ def get_fans(self):
120121
self.driver.find_element_by_xpath("//a[contains(@href,'/followers')]").click()
121122
followers = self._get_names()
122123
fans = [user for user in followers if user not in following]
124+
sleep(2)
123125
print("\n****** Fans ******\n")
124126
prev = " "
125127
count = 0
@@ -148,6 +150,7 @@ def _get_names(self):
148150
self._make_driver_wait("/html/body/div[4]/div/div/div[1]/div/div[2]/button")
149151
self.driver.find_element_by_xpath("/html/body/div[4]/div/div/div[1]/div/div[2]/button").click()
150152
return names
153+
sleep(2)
151154

152155
#function cancel unfollowers
153156
def cancel_unfollowers(self):

0 commit comments

Comments
 (0)