Can we fetch visualisation URL with Tableau REST API? - python

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?

Related

Column Tagging in GCP Data Catalog using DLP results and Python

I've been dealing with this issue for weeks. Does anyone know how to create column tags in Data Catalog from DLP results? I wanted to run inspection job on DLP and then tag the inspected tables with the infoTypes that I've inspected. I only found Java codes regarding this problem but I appreciate if anyone can help me with Python.
I was unable to find a sample Python code that would implement column level tags. This Tag() function from the Python Client Library could be useful. The complete Data Catalog Python Client Library documentation can be found here.
Feature Request
However, you can let Google know that this is a feature that is important for access through their client libraries, and that you would like to request they provide a sample code for it.
Google's Issue Tracker is a place for developers to report issues and make feature requests for their development services. I'd suggest you make a feature request there. The best component to file this under would be the Big Data, with the Feature Request template.

Is it possible to create a bookmark on the Google Docs API?

Is it possible to create a bookmark in the Google Docs API for a specific paragraph element and then get the bookmarkId of the bookmark?
Answer:
Unfortunately at the moment this isn't possible to do.
Feature Request:
Google's Issue Tracker is a place for developers to report issues and make feature requests for their development services, and a Feature Request for this has already been made over there.
You can view this feature request here, to which you can click the star (☆) in the top left to let Google know more people want this feature to be implemented.

How can I use django to realize real time?

I have a rethinkdb. Data will get in database for every five minutes.
I want to create a website to real-time inspect this data flow from rethinkdb.
That is, when surfing the webpage, the data from db on webpages can update automatically without refreshing the webpage.
I know there are several ways to make it real-time such as django channels or websockets. However, model in django does not support rethinkdb.
Sorry I am a layman of making website and may express things inaccurately.
Can someone give me a keyword or hint?
If you make your question more specific, the community here will be able to offer you better support.
However, here is a general solution to your problem.
You will need to do two things:
Create a backend API that allows you to:
Check if new data has been added to the database
Fetch new data via a REST api request
Make frontend AJAX requests to this api
Fetch data
Periodically (every 30sec) check if there is new data
Fetch data again if new data is detected
To do this using Django as the backend, I would recommend using the Django Rest Framework to create your API.
This API should have two endpoints:
ListView of your data
Endpoint returning the id and timestamp of the last datapoint
Next you will have to create a frontend that uses javascript to make requests to these endpoints. When you fetch data, store the id and timestamp of the most recent data point. Use this to check if there is new data.
I would recommend using a Javascript framework such as Angular or react but depending on your needs these may be overkill.
EDIT:
Now that you have updated your answer to be more specific, here is my advice. It sounds like your number one priority is rethinkDB and real time data. Django is not well suited this because it is not compatible with rethinkDB. Real time support has come a long way in Django with Django channels however.
It sounds like you are early on in your project and have little to no codebase in Django. I would recommend using horizon along with rethink db. Horizon is a javascript backend built for real time data from rethinkdb.

Integrate Google Analytics API Charts

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.

Getting Started with Facebook API

I have a friend that owns a small business and has a Page on Facebook. I want to help her manage it from a marketing perspective, and figure that it may be best to do so through their API.
I have skimmed their API documentation, and have a basic working knowledge of Python. What I can't figure out is if I can access their page's data with Python and grab the data on wall posts, who liked posts, etc. Is this possible? I can't find a decent tutorial for someone who is new to programming.
To provide context, I have been scraping the Twitter Search API for some time now and I am hoping there is something similar (request certain data elements, and have it returned as structured data I can analyze). I find their API extremely straight forward, and for Facebook, I don't know where to begin.
I don't want to create an application, I simply want to access the data that is related to my friend's page.
I am hoping to find some decent tutorials and help on what I will need to get started. Any help you can provide will be greatly appreciated.
You could try Pyjamas Desktop.
http://pyjs.org/
It runs python in an embedded web browser and gives you access to the html DOM.
This potentially means that you can use the JS api directly from python.
You will need to be running a server locally though.
Basically to automate posting stuff to the persons profile you need to get their oath token and then make API calls w/ that token.
Here are steps to get API token:
Register APP w/ facebook and get app id
Have your friend click this link https://www.facebook.com/dialog/oauth?
client_id=[your app id here]&
type=user_agent&
scope=email,read_stream,,,user_about_me,offline_access,publish_stream&
redirect_uri=http://www.facebook.com/connect/login_success.html
Then record that token for future
You can now use any available python FB lib to post and manage that FB page.
This should get you started:
http://eggie5.com/20-getting-started-w-facebook-api

Categories

Resources