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

I don't understand what is going wrong? #196

Open
amisha-shrivastava opened this issue Nov 11, 2022 · 4 comments
Open

I don't understand what is going wrong? #196

amisha-shrivastava opened this issue Nov 11, 2022 · 4 comments

Comments

@amisha-shrivastava
Copy link

D:\Projects\instagram-profilecrawl>python crawl_profile.py iaryantiwarii
[WDM] - Downloading: 100%|████████████████████████████████████████████████████████| 6.46M/6.46M [00:01<00:00, 4.02MB/s]

DevTools listening on ws://127.0.0.1:51720/devtools/browser/f194453f-440f-4ac8-8dcb-7c1af6d6877e
Extracting information from iaryantiwarii
INFO [2022-11-11 17:04:37] Extracting information from iaryantiwarii
Traceback (most recent call last):
File "D:\Projects\instagram-profilecrawl\crawl_profile.py", line 19, in
information, user_commented_list = extract_information(browser, username, Settings.limit_amount)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\instagram-profilecrawl\util\extractor.py", line 446, in extract_information
ig_user = InstagramUser(browser, username)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Projects\instagram-profilecrawl\util\extractor.py", line 34, in init
self.container = self.browser.find_element_by_class_name('v9tJq')
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Amisha\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 564, in find_element_by_class_name
return self.find_element(by=By.CLASS_NAME, value=name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Amisha\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 976, in find_element
return self.execute(Command.FIND_ELEMENT, {
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Amisha\Lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "C:\Users\Amisha\Lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"css selector","selector":".v9tJq"}
(Session info: chrome=107.0.5304.107)

@stephen714
Copy link

From what I've found elsewhere online, it could be an issue with the page being incompletely loaded before the next event occurs. I don't know how to fix it though 😞
I'm also running into this error...

@2gethergroup
Copy link

CLASS_NAME changed

In account.py
44 WebDriverWait(browser, 10).until(EC.presence_of_element_located((By.CLASS_NAME, "_ab3b")))
68 WebDriverWait(browser, 10).until(EC.presence_of_element_located((By.CLASS_NAME, "_ac8f")))

@n8petersen
Copy link

Also receiving this error.
image

@iamyufan
Copy link

iamyufan commented Nov 6, 2023

Same issue

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