GithubHelp home page GithubHelp logo

article_spider's People

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  avatar  avatar  avatar  avatar  avatar  avatar

article_spider's Issues

启动报错

node out/index.js

module.js:478
throw err;
^

Error: Cannot find module '/article_spider/out/index.js'

缺少文件

请问下面报错是否代码缺少文件?请大佬帮忙提供下,多谢!
image

error: CRAWLER Error Error: options.uri is a required argument when fetching undefined (3 retries left)

在爬取公众号 openmindworld 时发生错误:

正在解析文章数据:{"id":"1000000353","title":""} 2020-03-24T12:58:53.713Z - error: CRAWLER Error Error: options.uri is a required argument when fetching undefined (3 retries left) 2020-03-24T12:59:03.721Z - error: CRAWLER Error Error: options.uri is a required argument when fetching undefined (2 retries left) 2020-03-24T12:59:13.737Z - error: CRAWLER Error Error: options.uri is a required argument when fetching undefined (1 retries left) 2020-03-24T12:59:23.745Z - error: CRAWLER Error Error: options.uri is a required argument when fetching undefined (node:3147) UnhandledPromiseRejectionWarning: Error: Error: options.uri is a required argument at Step.<anonymous> (/home/jeetchan/article_spider/node_modules/step-pipe/out/index.js:31:27) at Generator.throw (<anonymous>) at rejected (/home/jeetchan/article_spider/node_modules/step-pipe/out/index.js:5:65) at <anonymous> at process._tickCallback (internal/process/next_tick.js:188:7) (node:3147) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1) (node:3147) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

mac微信客户端v2.3.10,appmsg_token字段取消?

仅仅填了biz和cookie,输出的错误信息为:
(node:64548) UnhandledPromiseRejectionWarning: Error: Error: {"ret":-3,"errmsg":"no session","cookie_count":1}
at Step. (/Users/chenchao/article_spider/node_modules/step-pipe/out/index.js:31:27)
at Generator.throw ()
at rejected (/Users/chenchao/article_spider/node_modules/step-pipe/out/index.js:5:65)
at
at process._tickCallback (internal/process/next_tick.js:188:7)
(node:64548) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:64548) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

error TS2339: Property 'attribs' does not exist on type 'Element'.

article_spider % tsc
src/wechat/parser.ts:207:29 - error TS2339: Property 'attribs' does not exist on type 'Element'.
Property 'attribs' does not exist on type 'TextElement'.

207 const src = img.attribs['data-src'] || img.attribs['data-backsrc'] || img.attribs['src'];
~~~~~~~

src/wechat/parser.ts:207:56 - error TS2339: Property 'attribs' does not exist on type 'Element'.
Property 'attribs' does not exist on type 'TextElement'.

207 const src = img.attribs['data-src'] || img.attribs['data-backsrc'] || img.attribs['src'];
~~~~~~~

src/wechat/parser.ts:207:87 - error TS2339: Property 'attribs' does not exist on type 'Element'.
Property 'attribs' does not exist on type 'TextElement'.

207 const src = img.attribs['data-src'] || img.attribs['data-backsrc'] || img.attribs['src'];
~~~~~~~

src/wechat/parser.ts:208:30 - error TS2339: Property 'attribs' does not exist on type 'Element'.
Property 'attribs' does not exist on type 'TextElement'.

208 const type = img.attribs['data-type'] || 'jpg';
~~~~~~~

src/wechat/parser.ts:213:38 - error TS2339: Property 'attribs' does not exist on type 'Element'.
Property 'attribs' does not exist on type 'TextElement'.

213 imagesMeta.push({ ...img.attribs });
~~~~~~~

src/wechat/parser.ts:229:28 - error TS2339: Property 'tagName' does not exist on type 'TextElement | TagElement | CommentElement'.
Property 'tagName' does not exist on type 'TextElement'.

229 img.parent.tagName === 'p' && (contentElement.find('p')[0] === img.parent)) {
~~~~~~~

typings/crawler.d.ts:9:16 - error TS2304: Cannot find name 'CheerioAPI'.

9 $: CheerioAPI;
~~~~~~~~~~

Found 7 errors.

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.