pyecharts Python36\Lib\site-packages\pyecharts\base.py --> weixin_crawler\source_code\base.py. In this case function get_echarts_options is added in line 106
If you want weixin_crawler work automatically those steps are necessary or you shoud operate the phone to get the request data that will be detected by Anyproxy manual
Install adb and add it to your path(windows for example)
install android emulator(NOX suggested) or plugin your phone and make sure you can operate them with abd from command line tools
If mutiple phone are connected to your computer you have to find out their adb ports which will be used to add crawler
adb does not support Chinese input, this is a bad news for weixin official account searching. In order to input Chinese, adb keyboard has to be installed in your android phone and set it as the default input method, more is here
Why could weixin_crawler work automatically? Here is the reason:
If you want to crawl a wechat official account, you have to search the account in you phone and click its "全部消息" then you will get a message list , if you roll down more lists will be loaded. Anyone of the messages in the list could be taped if you want to crawl this account's reading data
If a nickname of a wechat official account is given, then wexin_crawler operate the wechat app installed in a phone, at the same time anyproxy is 'listening background'…Anyway weixin_crawler get all the request data requested by wechat app, then it is the show time for scrapy
As you supposed, in order to let weixin_crawler operate wechat app we have to tell adb where to click swap and input, most of them are defined in weixin_crawler/project/phone_operate/config.py. BTW phone_operate is responsible for wechat operate just like human beings, its eyes are baidu OCR API and predefined location tap area, its fingers are adb
Run the main.py
Now open the browser and everything you want would be in localhost:5000.
In this long step list you may get stucked, join our community for help, tell us what you have done and what kind of error you have found.
Let's go to explore the world in localhost:5000 together