Back in the day, I know it was possible to really customize your Google Docs/Forms. Is that still the case? There were all these tricks about how to make it look the way you want when you embed them onto a page (and remove Google's branding). The closest post I'm finding is from 2014 and it doesn't appear to work anymore.
What I'm trying to do is embed a small table into a webpage -- and only that table. I don't want anything else from Google. This table will be updated by me on the backend, so it can't be just an image.
You have to publish to the web and then get the iframe code to embed. At the top of your Spreadsheet, click File and then Publish to the web. Click on the Embed tab and then on the "Publish" button, this will generate the iframe element you can use in your web.
Within the iframe, there's the src attribute with a URL you can edit with some query parameters to customize Sheet's behaviors, for example, to specify the range to be displayed in the iframe, you can add the range query parameter:
<iframe src="https://docs.google.com/spreadsheets/d/e/[SPREADSHEET-ID]/pubhtml?gid=0&range=[RANGE]&single=true&widget=true&headers=false"></iframe>
In your case it would appear your Spreadsheet ID and you need to replace the [RANGE] with the A1 notation of the range you want to display.
Related
First of all, I'm completely incompetent and my hours-long attempts at trying to make this work have been fruitless. So, please, there's someone that can help me.
I have
table id="..........." tablesorter class="........"
They are in the same line of code ad I'm able to scrape until the first element. For me it's important to scrape by the second one. I'm tryng different way but nothing
investing
In the image, in the part highlighted on the left where there is the drop-down menu, it's possible to select the different American markets (Nasdaq, DowJones,
S&P500 etc.). When I select a market other than DowJones, the URL of the page always remains the same, while the part that I highlighted on the right changes (tablesorter class = "............").
In my sheet, I've done this but it can't allow me to scrape different market (only the default table thay you see when open the webpage)
spreadsheet
Your main problem is that IMPORTXML can only retrieve information from static content in websites. Therefore, any content inserted dynamically can't be retrieved by this function.
In your case, you can check what content is not static by heading over to the website https://it.investing.com/equities/americas and then disabling JavaScript on it. To do so if you are using Chrome please follow this guide.
As Javascript will add dynamic content to the site, when you disable it you will observe that the information subject to change with the dropdown doesn't actually change which means that it was dynamically inserted and therefore can't be accessed by IMPORTXML. I have attached an image below showing this.
As a workaround to this you will need to use other web scraping techniques.
I am going to show a mobile version of wikipedia page in my app.
The easiest way is to use UIWebView to show mobile view page, e.g. https://en.m.wikipedia.org/w/index.php?title=White_House
However I want to make certain changes to the page:
Remove the search bar.
remove all external links in the page.
while keep all format/image/layout unchanged.
I did some search. Seems I have to retrieve all contents in json with wikipedia API and reformat everything by myself.
Any easier way?
You can load the HTML, make "Find and replace" and remove whatever you want. (Modify the HTML itself.
After that you can load the HTML into the UIWebView.
Note: This might break when wikipedia will change it's webpage structure...
There is a google site. I need to add a text box and button, and a service (script) which can send a data of a textbox to a specified spreadsheet.
You could use a Google Form and Insert that into the site. This video shows how. The other option would be custom code, saved as a Web App and Inserted using an Include Gadget found under Insert->More Gadgets. For just 1 field, I would go with the Google Form.
You can create a script \Here], then make it extract a document, after that you allow the user to edit it through your site and only there then, add that to the search bar by editTaskbar in the embed section then well in the {} do this: s+2%[where you want it to go ex:(search)this adds it to the search bar]=docs.[name of document].name there you can make it add to a textbox that you added.
EX:
almost to limit of characters so go to scripts.google.com and Ctrl+V after googleing "how to extract and add a doc to a site in google sites" oh instead of doc do sheet. Forgot it was sheets Sorry.
I would like dashboard to link to worksheet. Unfortunately, these instructions show how to link to webpage, or file on server.
http://onlinehelp.tableau.com/current/pro/online/mac/en-us/actions_url.html
How to link to worksheet?
What is the purpose of the link?
If you have a whole lot of worksheets and just want to open the one that you look at in the dashboard, you can cllick the small "go to" icon in the top right corner of the graph.
To actually create an action that links to a worksheet is not possible and doesn't seem to make sense, since the URL action is meant to create a link based on a certain value in your data, however no matter what data is displayed, you will always end on the same graph.
In case you want to further investgate certain data you select, you could create a filter in the same dialogue that filters other graphs in your dashboard based on the values you select.
I would like to know if there is a way when using Google custom search engine to have Google CSE link to a page with a URL like this
http://www.mysite.com/mysection/mysectionarticles.html#myarticle234
or something close to that.
Let’s say Google would find the searched words in a certain part of the page it could be in a or after an anchor or something like that and would supply in the search result a way to link to this specific section of the page.
So if you have big pages the user wouldn't have to scroll through the page to find the relevant part he saw in the CSE snippet.
It could also be used if you have a dynamic page that change state using JavaScript. Part of the page is hidden to the user until he does an action in the pages, but this hidden content was indexed by Google because it’s part of the page. So when the user clicks on the link in the search result he ends up on a page and can’t find the relevant part because it’s hidden.
Take a look at Google's support for structured/rich data and ajax urls for crawling (aka hash-bangs). One or both of them ought give you access to the pages with the right things displayed.