Giter VIP home page Giter VIP logo

node-google-search-trends's People

Contributors

antrikshy avatar

Stargazers

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

Watchers

 avatar  avatar

node-google-search-trends's Issues

error calling the search trends

I used your package in a project about six or eight months ago (thank you!) but I noticed that as of the last month or so, it stopped running and it seems like the issue is with the trends script. I wonder if google's search trends page design changed in some way?

Let me know if you have any insights as to what might be the issue. I am getting the below error.

events.js:165

      throw er; // Unhandled 'error' event

      ^


TypeError: Cannot read property 'channel' of undefined

    at /rbd/pnpm-volume/268826f4-8f13-42a9-a527-f6f7bb49d2d5/node_modules/.registry.npmjs.org/node-google-search-trends/1.1.0/node_modules/node-google-search-trends/trends.js:13:33

    at /rbd/pnpm-volume/268826f4-8f13-42a9-a527-f6f7bb49d2d5/node_modules/.registry.npmjs.org/node-google-search-trends/1.1.0/node_modules/node-google-search-trends/trends.js:44:9

    at Parser.<anonymous> (/rbd/pnpm-volume/268826f4-8f13-42a9-a527-f6f7bb49d2d5/node_modules/.registry.npmjs.org/xml2js/0.4.19/node_modules/xml2js/lib/parser.js:303:18)

    at Parser.emit (events.js:180:13)

    at SAXParser.onclosetag (/rbd/pnpm-volume/268826f4-8f13-42a9-a527-f6f7bb49d2d5/node_modules/.registry.npmjs.org/xml2js/0.4.19/node_modules/xml2js/lib/parser.js:261:26)

    at emit (/rbd/pnpm-volume/268826f4-8f13-42a9-a527-f6f7bb49d2d5/node_modules/.registry.npmjs.org/sax/1.2.4/node_modules/sax/lib/sax.js:624:35)

    at emitNode (/rbd/pnpm-volume/268826f4-8f13-42a9-a527-f6f7bb49d2d5/node_modules/.registry.npmjs.org/sax/1.2.4/node_modules/sax/lib/sax.js:629:5)

    at closeTag (/rbd/pnpm-volume/268826f4-8f13-42a9-a527-f6f7bb49d2d5/node_modules/.registry.npmjs.org/sax/1.2.4/node_modules/sax/lib/sax.js:889:7)

    at SAXParser.write (/rbd/pnpm-volume/268826f4-8f13-42a9-a527-f6f7bb49d2d5/node_modules/.registry.npmjs.org/sax/1.2.4/node_modules/sax/lib/sax.js:1436:13)

    at Parser.exports.Parser.Parser.parseString (/rbd/pnpm-volume/268826f4-8f13-42a9-a527-f6f7bb49d2d5/node_modules/.registry.npmjs.org/xml2js/0.4.19/node_modules/xml2js/lib/parser.js:322:31)

Emitted 'error' event at:

    at Parser.exports.Parser.Parser.parseString (/rbd/pnpm-volume/268826f4-8f13-42a9-a527-f6f7bb49d2d5/node_modules/.registry.npmjs.org/xml2js/0.4.19/node_modules/xml2js/lib/parser.js:326:16)

    at Parser.parseString (/rbd/pnpm-volume/268826f4-8f13-42a9-a527-f6f7bb49d2d5/node_modules/.registry.npmjs.org/xml2js/0.4.19/node_modules/xml2js/lib/parser.js:5:59)

    at exports.parseString (/rbd/pnpm-volume/268826f4-8f13-42a9-a527-f6f7bb49d2d5/node_modules/.registry.npmjs.org/xml2js/0.4.19/node_modules/xml2js/lib/parser.js:354:19)

    at IncomingMessage.<anonymous> (/rbd/pnpm-volume/268826f4-8f13-42a9-a527-f6f7bb49d2d5/node_modules/.registry.npmjs.org/node-google-search-trends/1.1.0/node_modules/node-google-search-trends/trends.js:43:7)

    at IncomingMessage.emit (events.js:185:15)

    at endReadableNT (_stream_readable.js:1106:12)

    at process._tickCallback (internal/process/next_tick.js:178:19)

ITS NOT A JSON :(

hello , i checked it alot !!! the output is not an json !!!! syntax error !
check your sample output in jsonlint.com

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.