Scraping SofaScore votes using Xpath and google sheets - string

I'm trying to scrape the votes from SofaScore with google sheets using the importxml function.
I'm running into an issue because the class name has a random string at the end of it.
Example "class="sc-5b0433e1-5 koUsvm"
Lets use https://www.sofascore.com/washington-nationals-new-york-mets/ExbsFtc as an example link.
Typically I would just use something similar to the code below.
//div[contains(#class= 'sc-5b0433e1-5')]
Does anyone know how to go about this.

JS elements are not supported by google sheets importxml formula:

Related

Google Sheets API strips out links

I'm fetching some data from Google Sheets via Node, but the API only returns the text value when there's a hyperlink present. I've searched for solutions, and everyone seems to say to add valueRenderOption: 'FORMULA' to your API call, but that still doesn't do anything for me because it doesn't look like these links are applied via the HYPERLINK formula; the user is highlighting text, hitting CMD/CTRL + K, and creating a link that way because when I select the cell, the formula field is empty.
Figured it out. Looks like you can't use spreadsheets.values.get in this case. You have to use spreadsheets.get and pass includeGridData: true.

Conditionally-grouping from an excel spreadsheet

I have a list of people with their preferred games to play (in the exact same format as in the picture attached).
I wish to create new lists corresponding to the number of games, with each list specifying the relevant people - see example with the "basketball group" in the picture attached.
How can it be done using conditional statements?
I'd like to have an implementation if possible, I'm a bit confused.
Thanks.
Sample image
When using Office 365 you could use FILTER() in combination with FIND():
=FILTER($A$2:$A$5,ISNUMBER(FIND(LEFT(F$1,LEN(F$1)-LEN(" group")),$B$2:$B$5)))

Excel solution for a hyperlink that returns something for a param given to the link

I have a web app here:
http://www.mihaigo.myfreewebsite.info/translator.php?param=OriginalInterbankSettlementAmount
This returns the abbreviation of a word like OriginalInterbankSettlementAmount. It returns OrglItbkSttlAm by some rules and a dictionary put in my web-app. I will give another example:
www.mihaigo.myfreewebsite.info/translator.php?param=CancellationReasonInformationOriginatorIdentificationOrganisationIdentificationAnyBIC
that returns CnclRsnInfOrgnIdOrgIdAnyBIC.
The ideea is that I have an column of ~300 terms like that and I would need to make a formula or something to obtain the abbreviation from my webapp and I would like to know if there is any solution for this.
Thanks!
I've changed the code in Javascript so that I can input the ~300 terms directly here and receive the abbreviations there. mihaigo.myfreewebsite.info/translator.php

Resize column functionality required in Google Sites List Page Template

I need a resize column capability in on a Google Sites Page based on the List Page Template.
Can anyone suggest a possible workaround for this, other than embedding a spreadsheet which looks really bad
As far as I know there's no way to change columns size. About Google Spreadsheets, they look better if you insert the URL of a published spreadsheet (published as web page that is). The embed tag looks sth like this:
<iframe src="https://docs.google.com/spreadsheets/d/e/2PACX-1vQLcI0Y7X4oaW8eBYkt5r4.../pubhtml?widget=true&headers=false"></iframe>

Google Docs Spreadsheet Info for Finance stocks

Im trying to have dividend payable dates, or ex-dividend dates populate in the cell next to a ticker. Anyone ever done this? Does not seem I can find this one.
If you are able to find a web page that provides this information based on a given ticker, you can use importXml function in the spreadsheet.
This function gets the URL of the site (probably with some query as q=TICKER), and XPATH expression of the field with the relevant value.
You can find the XPATH using "Inspect Elemnt" in Chrome, Safari and other modern browsers.

Resources