google-trends-api
gtrendsR
google-trends-api | gtrendsR | |
---|---|---|
2 | 1 | |
852 | 349 | |
- | - | |
0.0 | 0.0 | |
over 1 year ago | almost 2 years ago | |
JavaScript | R | |
MIT License | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
google-trends-api
-
Google pytrends search keywords and categories for getting accurate results [I can only post links, sorry about that]
So I am trying to get google trends data for a stock market project. While getting data, I am confused about the category to pass to the cat attribute. There are two possibilities. I tried 5 (Compute and Electronics or CE) and 13 (Internet and Telecom or IT) for Apple. Similarly, I want to scrape for Google, Amazon, Facebook, Microsoft and Tesla. So according to this page, what categories should I use. https://github.com/pat310/google-trends-api/wiki/Google-Trends-Categories. Thanks in Advance
-
Show HN: 24Trends – Daily Google trends of your country on Twitter
Hi HN!
Google Trends is underrated. This huge search engine is somewhat a projection of what the public has on their minds at a given time.
However, Trends have no API and it's not easy enough to go check trends regularly. You have to remind yourself to go to Trends website, choose your country etc.
Twitter is the perfect platform to have this. I've made a network of Twitter bots for sharing the Trends of each country 3 times a day. It works for 13+ countries (check Following) right now. The bot first posts a generated image of 20 trending topics and headlines. Then lists the trending topics, and if the account has enough followers it posts one related news link for each topic.
I had to dispose several accounts as they got marked as spam, and once that happens there is no going back... That's why I first start with an image and the list of trends as tweets first, then enable links once there's a decent follower base (around +100). It was difficult but interesting in hindsight trying to escape Twitter's spam filter. I needed an SMS number for each account. Thankfully there are services giving you burner SMS numbers starting $0.05 . Just need to get lucky they won't ask the number twice.
Technically it's a simple node.js script running on Google Cloud Functions. The function is triggered every hour and it checks the current time of countries. If it matches it retrieves the trends using https://github.com/pat310/google-trends-api package, generates the trends image and posts tweets one by one.
The setup is fragile. The google-trends-api package seems to use an academic API for Trends and can be shut down any time. Also Twitter is strict about bots (forbidden according to terms) and might shut the accounts down anytime. Anyways, it was fun to build it and now it's quite easy to kickstart a Twitter bot
Looking forward for your comments and feedbacks! Also let me know if you have any idea how I can spread it more.
gtrendsR
What are some alternatives?
gogtrends - Unofficial Google Trends API for Go
bert - TensorFlow code and pre-trained models for BERT
yapf - A formatter for Python files
kuwala - Kuwala is the no-code data platform for BI analysts and engineers enabling you to build powerful analytics workflows. We are set out to bring state-of-the-art data engineering tools you love, such as Airbyte, dbt, or Great Expectations together in one intuitive interface built with React Flow. In addition we provide third-party data into data science models and products with a focus on geospatial data. Currently, the following data connectors are available worldwide: a) High-resolution demographics data b) Point of Interests from Open Street Map c) Google Popular Times