Socket
Socket
Sign inDemoInstall

trendwear

Package Overview
Dependencies
3
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    trendwear

📗 library to deal with Google Trends and its most discussed topics


Version published
Weekly downloads
0
Maintainers
1
Created
Weekly downloads
 

Readme

Source

trendwear

📗 library to deal with Google Trends and its most discussed topics

Example

import Trendwear from "trendwear"

const trends = Trendwear("US") // Too: US, GB, BR, JP...

trends.getSchemaFromTrendings()
  .then((res) => console.log(res.items))
  .catch((error) => new Error(error))

With async function

const { status, feed, items } = await trends.getSchemaFromTrendings()

// Get info
console.log('status', status)
console.log('feed', feed.title)
console.log('items', items.length)

Result

{
  status:"ok",
  feed: {
    url: "https://trends.google.com/trends/trendingsearches/daily/rss?geo=US",
    title: "Daily Search Trends",
    link: "https://trends.google.com/trends/trendingsearches/daily?geo=US",
    author: "",
    description: "Recent searches",
    image: ""
  },
  items: [
    {
      title: "Salma Hayek",
      pubDate: "2021-02-04 15:00:00",
      link: "https://trends.google.com/trends/trendingsearches/daily?geo=US#Salma%20Hayek",
      guid: "672633e4373a64063455d11fced0c6a0",
      author: "",
      thumbnail: "",
      description: "",
      content: "",
      enclosure: {},
      categories:[]
    }
    // ...
  ]
}

Keywords

FAQs

Last updated on 05 Feb 2021

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