Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Why is it giving this error once it reaches usernames page #13

Open
paulsblackfriday opened this issue Jun 2, 2022 · 5 comments
Open

Comments

@paulsblackfriday
Copy link

paulsblackfriday commented Jun 2, 2022

Im running into to this and i twas fine just two 3 days ago, its telling me the selenium isnt working:
the folders within: site-packages/ should i delete then run to install them again?
two folders are in it existing as: selenium-3.141.0.dist-info\ and selenium.

C:\Users\Paul\Downloads\Instragram Follows Test>python run.py
[Required] - Whose followers do you want to scrape: ___username censored here
[Required] - How many followers do you want to scrape (60-500 recommended): 500

[WDM] - Current google-chrome version is 102.0.5005
[WDM] - Get LATEST driver version for 102.0.5005
[WDM] - Driver [C:\Users\Paul.wdm\drivers\chromedriver\win32\102.0.5005.61\chromedriver.exe] found in cache

DevTools listening on ws://127.0.0.1:57190/devtools/browser/6609293c-b8d9-4ddf-96c0-7033a83a7f84
[Info] - Logging in...
Traceback (most recent call last):
File "C:\Users\Paul\Downloads\Instragram Follows Test\run.py", line 103, in
scrape()
File "C:\Users\Paul\Downloads\Instragram Follows Test\run.py", line 69, in scrape
WebDriverWait(bot, TIMEOUT).until(
File "C:\Users\Paul\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.10_qbz5n2kfra8p0\LocalCache\local-packages\Python310\site-packages\selenium\webdriver\support\wait.py", line 80, in until
raise TimeoutException(message, screen, stacktrace)
selenium.common.exceptions.TimeoutException: Message:

C:\Users\Paul\Downloads\Instragram Follows Test>

C:\Users\Paul\Downloads\Instragram Follows Test>

@tgrander
Copy link

tgrander commented Aug 8, 2022

Replace that xpath value with "//a[contains(@href, '/following')]" which will successfully access the link even if the exact xpath changes in the future.

@MitoNftlab
Copy link

pls bro
which of the xpath value should we replace

@6661647a77616e
Copy link

i change EC.presence_of_element_located(( By.XPATH, '//*[@id="react-root"]/section/main/div/ul/li[2]/a'))).click()

into this EC.presence_of_element_located(( By.XPATH, "//a[contains(@href, '/following')]"))).click()

but somehow it return nothing to followers.txt file

@CreaTorAlexander
Copy link

Yes, I have the same issue, I also updated the path in line 86 where it uses the same path element, but my resulting text file is still empty.

@CreaTorAlexander
Copy link

I solved it by replacing line 86 with
"//a[contains(@href, '/')]")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants