Git Product home page Git Product logo

v2ex_scrapy's Introduction

Yes

v2ex_scrapy's People

Contributors

oldshensheep avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

v2ex_scrapy's Issues

scrapy crawl v2ex 出错了

包都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

太容易403了

2023-07-06 14:50:53 [scrapy.core.engine] DEBUG: Crawled (403) <GET https://www.v2ex.com/t/326> (referer: None)
2023-07-06 14:50:53 [scrapy.spidermiddlewares.httperror] INFO: Ignoring response <403 https://www.v2ex.com/t/326>: HTTP status code is not handled or not allowed
2023-07-06 14:50:53 [scrapy.core.engine] DEBUG: Crawled (403) <GET https://www.v2ex.com/t/327> (referer: None)
2023-07-06 14:50:54 [scrapy.spidermiddlewares.httperror] INFO: Ignoring response <403 https://www.v2ex.com/t/327>: HTTP status code is not handled or not allowed
2023-07-06 14:50:54 [scrapy.core.engine] DEBUG: Crawled (403) <GET https://www.v2ex.com/t/328> (referer: None)
2023-07-06 14:50:54 [scrapy.spidermiddlewares.httperror] INFO: Ignoring response <403 https://www.v2ex.com/t/328>: HTTP status code is not handled or not allowed
2023-07-06 14:50:56 [scrapy.core.engine] DEBUG: Crawled (403) <GET https://www.v2ex.com/t/329> (referer: None)
2023-07-06 14:50:56 [scrapy.spidermiddlewares.httperror] INFO: Ignoring response <403 https://www.v2ex.com/t/329>: HTTP status code is not handled or not allowed

建议加一些伪造useragent等逻辑

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.