I'm writing a program to make automatic reports via Google Analytics and everything was going fine until i saw that there should be graphical images, like the Analytics web version. (Most important example, the Behavior Flow)
Is there anyway i can implement this, through code, in PDF ?
You mentioned you wrote a program to download the GA data, so you have the knowledge to upload the data to a Google Spreadsheet. For more info on their api, try this URL: https://developers.google.com/google-apps/spreadsheets/?hl=en
Once the data is in a sheet within a Google Spreadsheet, you can use Google Data Visualizations. You can put the visualizations on a chart, or you can embed them in HTML, referring to the data sheet as a datasource.
The only challenge would be the Behavioural flow. I suggest that if your page flow is fairly static, you could probably draw something dynamically using GSS's ability to alter the sizes of block images dynamically, based on data values.
Chart Gallery:
https://developers.google.com/chart/interactive/docs/gallery?hl=en
This would entail a lot of work, as free solutions often are, but you should be able to get the result you want.
Related
I am new to Tableau. We have a use-case and we considered Tableau to accomplish that. We are working on a search platform. As part of it, based on user search, we want to help the user with some analytics along with actual answer. So, our requirement is,
User asks a question
We get the information for that question
We created a hyper file using the information and published to tableau server
Now we want to create a visualisation out of published hyper file using Rest API and get the URL for the visualisation
Use Tableau Javascript API to show the visualisation for the user.
We are stuck at 4th point. As per Tableau documentation I could not find anything related. Is there a way to do this in Tableau. Can someone suggest if Tableau is an option for us?
I'm using Google Colaboratory to create a series of plots using plotly and saving them as .html on Google Drive. I would like to publish does files on a WordPress.
Furthermore, I will update these plots regularly. So every time I update them, they should be updated on WordPress.
Is there a good way to implement this?
It seems that there isn't a super easy way to get the HTML doc between Google and WordPress, so the next best thing is to automatically pull the raw document from Drive, and have that integrate on a schedule. Based on this SO post, get the file id for your document (follow these steps here) to be able to access the raw data of your file. Note: you may want the download link instead, which can be found in the second link.
https://drive.google.com/uc?id=file_id
This may not work, as I've found there's redirection, but you could also possibly use the redirected URL to grab the image. I haven't had much success, however (using curl and wget). After that, you should be able to upload it to WordPress, or have WordPress itself download it and implement it.
For a list of ~30 thousand keywords, I'm trying to find out how many Google search hits there exist for each keyword, similar to this website but on a larger scale: http://azich.org/google/.
I am using python to query and was originally planning to use pygoogle. Unfortunately Google has a limit of ~100 searches a day for a free account. I am willing to use a paid service, but I am not sure which Google service makes more sense - BigQuery or Custom Search. Bigquery seems to be for searches on a provided set of data, whereas Custom Search seems to be website search solutions for a small "slice" of the internet.
Would someone refer me to the appropriate service that will allow me to perform the above task? It doesn't need to be a free service - I am willing to pay.
Two more things, if possible: I'd like the searches to be from Google Scholar, but this is not necessary. Second, I'd like to save the text from the front page, such as the blurbs from each search result, to text-mine the front page results.
BigQuery is not a tool to interact with Google Search in any way. BigQuery is a tool for you to feed your data, and then run analytical queries over those data. But you need first to ingest the data.
At first I want to find some API, but I have searched on the internet and didn't find anything
really helpful.
"Real time" I mean live stream the stock price on a webpage without a refresh.
If there is not such API, would my following method be a good way to implement this?
1. Python side, call yahoo finance api to get the most recent price.
2. Browser side, use ajax to constantly call server side to get the price and display the price. More specifically, I am thinking to use setInterval in jquery to achieve this.
How does this approach look?
Actually this is not specific to stock price data, any website that need to constantly retrieve data from server side need to consider this problem. For example google chat, facebook news feed, and so on. Can anybody tell me in general how to achieve live streaming data from server to browser?
Another way would be to use a push architecture. You could take a look at APE - Ajax Push Engine.
You could also take a look at Socket.IO, a realtime application framework for Node.JS.
Hope this helps!
You should definitely use a Push API. These days you should probably use http://www.websocket.org/
You don't want to use a rest API for real time, its inefficient to constantly "pull" the live price. Instead you want a service that will "push" changes to you whenever new trades are executed on the exchange. This is done with a websocket, which is a type of API but it is definitely different from a rest API. This article discusses the difference.
Intrinio provides a real-time websocket and you can access it via Python using this SDK on Github. You can access the same data via rest API using this package in Python. If you try them both you will see the architecture doesn't make sense with a rest API.
This video shows the trades coming in- trades don't execute on the market at regular intervals, it's completely sporadic. Instead of constantly "asking" the server for the data, it's better to "listen". This is called top of the book, meaning you get the newest trades as they come in from the top.
I was wondering how does Google save the changes made to a Google document on the fly. Obviously it cannot send all the contents of the document being edited on keyup. I had left Firebug open and it seems like on keyup a text range along with whats changed in that range is being sent. Though I m not sure of this. Any idea how this is being done?
Operational Transformation is the core idea behind by many collaborative real-time editors. Google Wave Operational Transformation documents the protocol in Google Wave, and I'd assume that Google Docs is similar.