I'm currently planning to create a small package to enable Mathematica to manipulate WeChat, a extremely famous chatting software in China.
The first step is to get the QRCode on the website, but the QR is automatically updated once a few minute and use AJAX, so a direct URLFetch
or Import
won't work, also Import["https://wx.qq.com/","JSON"]
failed on my computer too.
I can get a proper HTML result using the developer tool on my web browser:
But the automatically updated QRCode address part(the selected region on the previous screenshot) cannot be fetched by Mathematica easily (due to AJAX)
The QRCode address part of this small HTML segment is replaced.
So how can I get a HTML result just like what I get in my web browser regardless of all AJAX or other stuffs? Thanks!
related:
There're existing packages in Python: itchat
How to execute JavaScipt on a webpage and then import the result on OSX? (note that the method given in this question cannot solve my problem, even though I use windows os)