fpollicelli / whatsappScraper

WhatsApp Web Scraper English and Italian supported
Apache License 2.0
6 stars 1 forks source link

Messages are not being scrapped #4

Open SaadGenie opened 1 week ago

SaadGenie commented 1 week ago

I have tried multiple times installing the latest Chrome driver , installing all the packages or using the packages from your venv and installing latest selenium and pandas but still the script doesn't scrap any messages from group chat. It gives following error "download.default_directory": r"" + x + "\Scraped\Media", Exception in thread Thread-1 (getChatLabels): Traceback (most recent call last): File "C:\Users\Saad\AppData\Local\Programs\Python\Python312\Lib\threading.py", line 1073, in _bootstrap_inner self.run() File "C:\Users\Saad\AppData\Local\Programs\Python\Python312\Lib\threading.py", line 1010, in run self._target(*self._args, *self._kwargs) File "c:\Users\Saad\Downloads\New folder\whatsappScraper-master\whatsappScraper-master\main.py", line 538, in getChatLabels recentList = driver.find_elements_by_xpath('//[@id="pane-side"]/div[1]/div/div/div') ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'WebDriver' object has no attribute 'find_elements_by_xpath'

it would be great if you could guide what is the problem i am facing of if its the xpath that whatsapp has changed could you guide me how to look for it so i can change these on my own if it ever changes in the future as well.