1.2.5 ā€¢ Published 3 years ago

trendwear v1.2.5

Weekly downloads
10
License
MIT
Repository
github
Last release
3 years ago

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:[]
    }
    // ...
  ]
}
1.2.5

3 years ago

1.2.4

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.0

3 years ago

1.2.1

3 years ago

1.1.0

3 years ago

1.0.0

3 years ago