Yahoo Finance Dividend History Table Missing - yql

I've been using the Yahoo Dividend History table for a stock app I've created for many years. Today it was missing, screwing up the whole app.
Check for yourself here:
https://developer.yahoo.com/yql/console/#h=select+Symbol%2C+Dividends%2C+Date+from+yahoo.finance.dividendhistory+where+startDate+%3D+%22%22+and+endDate+%3D+%22%22+and+symbol+in+(%22GRX%22)
And here is a picture proving it.
I asked this question a while back and then it turned out that it either showed up again or I had made a mistake. I'm not certain which. This time I know for sure it's missing.
So two questions: 1) Why would it go missing and can anyone fix it? Who can? 2) Is there an alternative source I can use instead. Maybe a Div History api for Yahoo or from somewhere else?

Related

Solved: Extract date from my Substack webpage to Google Sheets

longtime lurker, first-time poster. I usually solve my issues & upvote without needing to post, but I've been stumped all weekend!
Edit: Erik solved it:
I was looking for an answer to extract the "datePublished" or "dateModified" from a Substack article in a Google Sheet.
Goal: This will tell me when it was the last date/time I updated, for example, my PS5 restock guide, my Walmart PS5 restock guide, etc. If it's too stale, I try to add relevant information. Having it in Google Sheets makes it streamlined as there are dozens of guides.
Test Google Sheet:
https://docs.google.com/spreadsheets/d/1hLBFMWCTc2hpC-1C8Sxd5OVREdNHTVTtrJsAAU5Jl94/edit#gid=0
I've done this before for other sites I've worked at, but there appears to be no date in the meta data on Substack :/ (I could be wrong, as I'm no expert at reading XPATH)
I do see this in the body for the linked example:
<time datetime="2022-07-29T11:52:00.000Z">Jul 29</time>
I've been trying things like this (where E17 is where I put the article URL in Google Sheets) to no effect.
=REGEXEXTRACT(IMPORTXML(E17, "//time[#datetime='datePublished']/#content"), "(.+)T")
I've been mostly working off of this StackOverflow solution, but I haven't been able to apply the same finding to Substack's formatting.
If you want to grab it directly using a Google Sheets formula, this should work for you:
=ArrayFormula(IFERROR(VLOOKUP("*",FLATTEN(IFERROR(REGEXEXTRACT(IMPORTXML("https://www.theshortcut.com/p/ps5-restock","//div[2]"),"Swider(.?.?.?.?\d\d{1}[hrago\s]*)"))),1,FALSE),"???"))
To set realistic expectations, I usually can't invest this much time into working out such a solution on this forum. But I'm on vacation at the moment and filling time while my guest is otherwise occupied.
One further note: this is specific to the two sites you gave as examples. It will only work for sites where the second <div> holds this information and only where the data exists as strings exactly like those found on these two sites (including the poster's last name as "Swider").
ADDENDUM:
Looking at this further, did you try simply the following?
=IMPORTXML(C2, "//time")
(assuming your URL is in C2, etc.)
This seems to work for me, given that it appears the date/time data you want is contained within the first <time> element on the web page.

=importhtml Google Sheets table

Unfortunately I don't know how to source this and was wondering if someone could show me how. I am trying to learn hear so the correct answer is great, but the "How to get the answer" is more important to me.
I am using google sheets, and looking to bring in a table or data point from a website. I know =importhtml works for this but I don't know how to tell it what to get, I just keep getting people giving me the answers instead of the how too.
The current one I am looking for is the website "https://www.marketbeat.com/stocks/NASDAQ/TSLA/earnings/" Using TSLA as the example stock. I am looking to bring in the table that has all the earnings dates. The header is "TESLA (NASDAQ:TSLA) EARNINGS HISTORY BY QUARTER". I am just looking for all the dates in that table, but if it is easier to bring in the whole table I'll do that instead. But I know these websites update and that can change how the =importhtml works, so I would like to be able to fix it myself.
Also I am on a Mac
Thanks for any help.
=index(IMPORTHTML("https://www.marketbeat.com/stocks/NASDAQ/TSLA/earnings/","table",2),,1)
"2" is the table index for the one you are looking for and "1" is the column that you need.
Delete 1 and you will get the whole table.
=index(IMPORTHTML("https://www.marketbeat.com/stocks/NASDAQ/TSLA/earnings/","table",2))

Missing ID for GTM with RapidWeaver Stacks website

I'm a total novice when it comes to coding, so I've build my website in RapidWeaver and I'm happy with the result. But when I try to track clicks on my website I run into a problem with a missing ID. Is there any way that I will still be able to track clicks on my website?
I've tried to look at other answers to this, but it all involves a lot of code and I'm so very bad at that.

Synchronizing Fusion Tables

I am a high school student who has taken a course this year on app inventing. We recently started a project where we are making apps that would benefit our school in a positive way. We decided we would make a website for our app for those that can't access the app. We came to a roadblock and asked our teacher to help us out. Unfortunately, he wasn't able to provide us with the help we needed. So he said to find something online that can help us, which is why I have come here.
Our app project was for a place where people can report found items, or look for any item they lost. On our website, we created a Google Form for them to fill out, which then gets inserted into a Google Spreadsheet. From the spreadsheet, we were trying to get the information to be transferred over to a Google Fusion Table which we found a site that has a step by step explanation on how to do so. This is where we have come across our error. We're not sure why this keeps happening, and have triple checked everything and nothing has fixed this error. We were hoping someone could help us out and provide any sort of assistance on fixing this error.
Attached is the screenshot of the error we keep receiving, and the link to the website we used to help transfer the information.
Synchronizing Fusion Tables!
Thank you for your time, and hope to hear back from you soon.
Hard to answer as we have little information. Someone had the same problem and had in fact not switched the service on in the script editor, so in case you wouldn't have come across the link: https://productforums.google.com/forum/#!msg/google-fusion-tables/6ZtaoDUASb4/M5iqO6-6dOQJ

Does google adwords de-dupe conversions?

I'm using AdWords to track conversions on an ajax site. It works well for single conversions that have a unique label and value.
The Problem:
On the site I have a use case where a user can fire multiple very similar looking conversions in short succession. Sometimes these conversions are unique, sometimes they could match one or more of the other conversion values and labels.
When I submit these conversions, it tracks some of them, and not others.
At first, I was adding the conversion snippet to the page, so I figured it was including conversions.js only once, and not firing the others. So, to fix that, I moved the conversion snippet to an iFrame and put that on the page. That had the same problem, but was definitely including conversions.js. I was worried that the problem may have to do with the fact that they're fired in quick succession, so I made them wait before firing the next. I tried intervals of 1,2, and 4 seconds, none of which solved the issue.
In an attempt to figure out what was going wrong, I beautified conversions.js, and found a debug option. I turned it on, and it was warning on all conversions about a missing conversion_id - I tried adding google_conversion_id, and just set it to a timestamp, so it would always be unique. This didn't solve the problem either.
I finally tried just ditching the iFrames, and adding the tracking pixel to the page. The tracking pixel still fires the conversions just fine, and seems to add an iFrame to the page, then delete it. Unfortunately, the conversions still are missing.
The Question:
In light of this not working in any of many different ways, I'm wondering if google is de-duping my similar conversions. The docs have no information that shed light on this, but they also don't document the google_conversion_id, so there's plenty going on that isn't documented.
If they are, why wouldn't google_conversion_id fix this? It seems that should unique each lead. I can't append to the label or value, and I'm making all my requests with a cachebuster appended to the end to make sure it's not on the browser end. I can verify that it's working, as either conversions.js gets included or the iFrame shows up.
Any ideas? Anyone know where I can ask a googler about this? It's driving me CRAZY.
The variable google_conversion_id is your account number. Do not change it, or things just won't work.
As far as I can tell there is no way to pass a unique transaction ID, nor to sign the conversion parameters to prevent duplicates and request forgeries.
Google has no way to differentiate the following scenarios, because they result in exactly the same set of calls to the current Google adWords conversion script:
A customer buying two widgets at $50 in quick succession
A customer buying one widget at $50 and refreshing or returning to your receipt page
An evil adSense user triggering your conversion pixel to log himself two $50 sales
This was merely annoying when they only supported CPC, but with CPA it has become a vulnerability in the Google adWords system.

Resources