Socket
Socket
Sign inDemoInstall

google-events

Package Overview
Dependencies
215
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    google-events

Utility to return google events from the google search api.


Version published
Weekly downloads
5
increased by25%
Maintainers
1
Install size
145 MB
Created
Weekly downloads
 

Readme

Source

NodeJS Framework to obtain events from the google search api.

googleEvents.scrape("events next week salt lake city utah")
.then((res) => {
  // res looks like;
  // { count: 13,
  //   events: [Array],
  //   query: 'events next week salt lake city utah',
  //   selector: 'g-inner-card > div > div > a' }

  res.events.forEach((event, index) => {
    // event looks like this:
    // {   day: '16',
    //    image: "url to image",
    //    location: 'Rose Wagner Performing Arts Center · Salt Lake City, UT',
    //    month: 'MAR',
    //    text: '16\nMAR\nDabke\nSalt Lake County Center For The Arts\nFri, Mar 16 – Sun, Mar 18\nRose Wagner Performing Arts Center · Salt Lake City, UT\n\n',
    //    time: 'Fri, Mar 16 – Sun, Mar 18',
    //    title: 'Dabke' }
  })

})
.catch(err => {
  console.error(err);
})

Keywords

FAQs

Last updated on 13 Mar 2018

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc