Skip to content
This repository was archived by the owner on Nov 10, 2022. It is now read-only.

看不出什么问题了,help #42

Open
woody3rd opened this issue Jun 14, 2022 · 1 comment
Open

看不出什么问题了,help #42

woody3rd opened this issue Jun 14, 2022 · 1 comment

Comments

@woody3rd
Copy link

(venv) woody@Woody-MacBookPro tieba-spider % scrapy run java woody
Traceback (most recent call last):
File "/Users/woody/workspace/life/tieba-spider/venv/bin/scrapy", line 8, in
sys.exit(execute())
File "/Users/woody/workspace/life/tieba-spider/venv/lib/python3.10/site-packages/scrapy/cmdline.py", line 140, in execute
cmd.add_options(parser)
File "/Users/woody/workspace/life/tieba-spider/tieba/commands/run.py", line 19, in add_options
parser.add_option("-a", dest="spargs", action="append", default=[], metavar="NAME=VALUE",
AttributeError: 'ArgumentParser' object has no attribute 'add_option'. Did you mean: '_add_action'?

@MTzeyang
Copy link

改成add_argument

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants