Skip to content

Instantly share code, notes, and snippets.

@seozed
Last active May 20, 2020 09:07
Show Gist options
  • Save seozed/43b2b8542b4abdcdb23608225c0e2e46 to your computer and use it in GitHub Desktop.
Save seozed/43b2b8542b4abdcdb23608225c0e2e46 to your computer and use it in GitHub Desktop.
[提升scrapy编码效率的片段]
from scrapy.http import Response
# 声明response类型,帮助IDE完成自动补全
def parse(self, response: Response):
pass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment