Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

google-events

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

google-events

Utility to return google events from the google search api.

  • 1.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
increased by100%
Maintainers
1
Weekly downloads
 
Created
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

Package last updated on 13 Mar 2018

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc