lesywix / douban_group_spy

豆瓣小组爬虫
98 stars 23 forks source link

error when use python3 crawler_main.py -g 106955 -e 求租 -v #1

Closed buzai closed 5 years ago

buzai commented 5 years ago

File "crawler_main.py", line 45 lg.info(f'[post] update existing post: {post.post_id}') ^ SyntaxError: invalid syntax

lesywix commented 5 years ago

What Python version did you use?The script should use py3

buzai commented 5 years ago

@weixianglin Python 3.5.2 (default, Nov 12 2018, 13:43:14)

lesywix commented 5 years ago

I found the problem. You should try python version >= 3.6. Because the code use f-string which introduced by Python 3.6.