Is it possible to scrape all text messages from Whatsapp Web with Scrapy?

后端 未结 1 2068
天命终不由人
天命终不由人 2021-02-10 18:33

I\'ve been experimenting with web scraping using Scrapy, and I was interested in retrieving all text messages from all chats on Whatsapp to use as training data for a Machine Le

1条回答
  •  囚心锁ツ
    2021-02-10 19:05

    I think WhatsApp do not block crawlers and scrapers. You have access only to your web.whatsapp.com. It's your metter what will you do with your messages. When I write code to read/write WhatsApp messages I used Selenium WebDriver, which can fully automate any browser actions. It worked too stable for WhatsUpp. It was not fully automation, be course of QR code. If you press F12 and go to "network" tab in web browser, you will notice XHR packets with messages inside. You can see it when you load new messages during scrolling or opening person. It look like byte data. So I do not think you can write Scrapy code for that.

    0 讨论(0)
提交回复
热议问题