JMGama / WhatsApp-Scraping

Python script to get WhatsApp iformation frrom WhatsApp Web
Apache License 2.0
110 stars 65 forks source link

How to use it for windows? #10

Open FKistic opened 3 years ago

FKistic commented 3 years ago

i have downloaded your program but was unable to start it on windows 10 i am getting this error: File "c:\Users\xxxxxxxxxxxxxxxxxx\Documents\Python\WhatsApp-Scraping-master\src\main.py", line 52, in main() File "c:\Users\xxxxxxxxxxxxxxxxxx\Documents\Python\WhatsApp-Scraping-master\src\main.py", line 34, in main settings = load_settings() File "c:\Users\xxxxxxxxxxxxxxxxxx\Documents\Python\WhatsApp-Scraping-master\src\main.py", line 15, in load_settings browser = config_parser.get('config', 'BROWSER') File "C:\Users\xxxxxxxxxxxxxxxxxx\AppData\Local\Programs\Python\Python39\lib\configparser.py", line 781, in get d = self._unify_values(section, vars) File "C:\Users\xxxxxxxxxxxxxxxxxx\AppData\Local\Programs\Python\Python39\lib\configparser.py", line 1149, in _unify_values raise NoSectionError(section) from None configparser.NoSectionError: No section: 'config'

iam also getting this error: line 22, in init self.driver.get(self.page) AttributeError: 'NoneType' object has no attribute 'get'

github-of-wone commented 2 years ago

Even i am trying to run this on windows, what i tried doing here was moved the section from settings.txt directly to the python program.
also changed this statement in whatsapp_scrapper.py; chrome_options.add_argument('user-data-dir=D:/xx/1') the chrome selenium is working but for some reason i am not getting the QR code to scan!

Really wish if you could reply very soon. I am really looking forward to add a feature 'extract group members' and send you a pull request for this. And earn my first star in Hacktober 2022 (since yours is approved project from the tag). Nearly wasted 3 hours but stuck :(

Please revert