fuergaosi233 / gitbook2pdf

Grab the contents of the gitbook document and convert it to pdf
1.04k stars 175 forks source link

python gitbook.py http://self-publishing.ebookchain.org 报错 #61

Closed Akateason closed 4 years ago

Akateason commented 4 years ago

python gitbook.py http://self-publishing.ebookchain.org

File "gitbook.py", line 14 async def request(url, headers, timeout=None): ^ SyntaxError: invalid syntax

fuergaosi233 commented 4 years ago

请使用 Python 3.5 或以上,因为用到了 async/await 的语法