Skip to content

scrapy crawl v2ex 出错了 #1

@xinmans

Description

@xinmans

包都pip install了
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1014, in _gcd_import
File "", line 991, in _find_and_load
File "", line 975, in _find_and_load_unlocked
File "", line 671, in _load_unlocked
File "", line 848, in exec_module
File "", line 219, in _call_with_frames_removed
File "/home/xinmans/mydev/v2ex_scrapy/v2ex_scrapy/spiders/V2exSpider.py", line 7, in
from v2ex_scrapy.DB import DB
File "/home/xinmans/mydev/v2ex_scrapy/v2ex_scrapy/DB.py", line 7, in
from v2ex_scrapy.items import (
File "/home/xinmans/mydev/v2ex_scrapy/v2ex_scrapy/items.py", line 13, in
class Base(DeclarativeBase):
File "/home/xinmans/mydev/v2ex_scrapy/v2ex_scrapy/items.py", line 15, in Base
list[str]: JSON,
TypeError: 'type' object is not subscriptabl

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions