Skip to content

Commit

Permalink
docs: Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelCurrin authored Jan 7, 2020
1 parent 1d54f9c commit af02cfa
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,27 @@
# Trends
> Timeseries dashboard of trends around web searches, social media and economic indicators
## Google Trends

Use the UI on website to do searches. Choose a "search term" phrase or a topic from the droplist. Up to items can be added.

- Google Trends webpage - https://trends.google.com/

### Templates

Example UI URL create searches. This is a good starting point for new searches - set to worldwide and 5 years lookback.

- https://trends.google.com/trends/explore?date=today%205-y&q=foo

Example of embedded data snippet. Note this consists of two scripts when copy and pasted - one for the loader and one with the actual parameters.

- Keep data updated with lookback from today. e.g. `today 5-y`
```javascript
<script type="text/javascript" src="https://ssl.gstatic.com/trends_nrtr/2051_RC11/embed_loader.js"></script>
<script type="text/javascript"> trends.embed.renderExploreWidget("TIMESERIES", {"comparisonItem":[{"keyword":"foo","geo":"","time":"today 5-y"}],"category":0,"property":""}, {"exploreQuery":"date=today%205-y&q=foo","guestPath":"https://trends.google.com:443/trends/embed/"}); </script>
```
- Static data. This fixes the date range. e.g. `2015-01-07 2020-01-07`
```javascript
<script type="text/javascript" src="https://ssl.gstatic.com/trends_nrtr/2051_RC11/embed_loader.js"></script>
<script type="text/javascript"> trends.embed.renderExploreWidget("TIMESERIES", {"comparisonItem":[{"keyword":"foo","geo":"","time":"2015-01-07 2020-01-07"}],"category":0,"property":""}, {"exploreQuery":"date=today%205-y&q=foo","guestPath":"https://trends.google.com:443/trends/embed/"}); </script>
```

0 comments on commit af02cfa

Please sign in to comment.