shengqiangzhang / examples-of-web-crawlers

一些非常有趣的python爬虫例子,对新手比较友好,主要爬取淘宝、天猫、微信、微信读书、豆瓣、QQ等网站。(Some interesting examples of python crawlers that are friendly to beginners. )
MIT License
13.66k stars 3.79k forks source link

11.一键分析你的上网行为(web页面可视化)运行报错 #121

Open Nq26rp opened 1 year ago

Nq26rp commented 1 year ago

楼主你好,我在运行该程序时遇到了以下报错问题,该如何解决呢 C:\Users\Eternal\Desktop\examples-of-web-crawlers-master\11.一键分析你的上网行为(web页面可视化)>python app.py Traceback (most recent call last): File "C:\Users\Eternal\Desktop\examples-of-web-crawlers-master\11.一键分析你的上网行为(web页面可视化)\app.py", line 13, in from app_configuration import app File "C:\Users\Eternal\Desktop\examples-of-web-crawlers-master\11.一键分析你的上网行为(web页面可视化)\app_configuration.py", line 21, in app = dash.Dash(name) ^^^^^^^^^^^^^^^^^^^ File "C:\Users\Eternal\AppData\Local\Programs\Python\Python311\Lib\site-packages\dash\dash.py", line 338, in init self.init_app() File "C:\Users\Eternal\AppData\Local\Programs\Python\Python311\Lib\site-packages\dash\dash.py", line 377, in init_app self.server.before_first_request(self._setup_server) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: 'Flask' object has no attribute 'before_first_request'. Did you mean: '_got_first_request'?

Nq26rp commented 1 year ago

@shengqiangzhang