in the API documentation - https://phpoffice.github.io/PhpSpreadsheet/, I have see the spreedsheet and worksheet class reference, but now, they have missed,how can I find them?
Like yourself, I cannot find a page with a reference for the Spreadsheet class at present. However, you can find the Worksheet namespace here:
https://phpoffice.github.io/PhpSpreadsheet/namespaces/phpoffice-phpspreadsheet-worksheet.html
Unfortunately, it does not either appear to give a link to property or method reference information for the Worksheet class.
However there are various usage examples in the main documentation though which may hold enough to answer some of your questions, and also other information scattered around GitHub, SO and other sites. If there is a specific burning question you need answered, create a separate SO post.
Related
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.
After reading through the docs for the REST API and the JS SDK, as well as the class definitions for the newer partially complete lib on GitHub, I've been unable to find a definitive list of properties that can be updated via the JS SDK when using the .update() method. The only two shown are ActivitySid and FriendlyName - and the other docs have different casing on these properties. I thought casing might not be important, but the source for the JSSDK shows ActivitySid. Can someone please point me in the direction of what properties are actually available with the JSSDK? I'm assuming the best bet is that they match the properties listed here if someone could confirm?
Note: If you're from Twilio and see this, I'd be happy to open a PR with documentation corrections if it's possible. Otherwise, in the description of update() below - ActiveSid isn't a thing and it'd be helpful to see a list of properties for methods or at least a link to them.
Updates properties of a Worker. There are properties of a Worker, such as ActiveSid, FriendlyName, etc.
Thanks!
I have a need to generate and share Google Docs programatically. In this case, these are reports generated weekly from various sources like JIRA and a number of other tools used internally at our company.
The only documentation found so far seems to be related to use of Google scripts to generate documents.
Is there something similar to gspread for Google Spreadsheets that works with Google Docs? A python wrapper would enable us to collect the data from various sources and do some analysis before populating the report.
You may refer with this thread. It suggested that you need to create a blob of data representing your document in any of the formats listed here, depending on your programming language, simplest may be text/csv for a spreadsheet and application/rtf for a text-document. Then put in in an appropriately formatted POST data. You can also check the sample python code in the given link.
I'm kind of new at web dev and had a question of getting data from wikipedia. I am making a personal web app that will keep track of past UFC events. I couldn't find an open source api with event details and results. However the following table on wikipedia has a lot of the info I need: http://en.wikipedia.org/wiki/List_of_UFC_events
And I have seen several tutorials on how to get the info from a wiki table and format it into .csv format using google spreadsheets, or other software such as openrefine. But, I also want the information from each event's wikipage(fight results, winners, award winners, poster images etc.), and each event's own wiki page is lined on the table I mentioned above. I was wondering, what is the easiest way to go about extracting this information?
You can use nokogiri gem to scrap the web page
Sometime it is a big problem to get to know, how to use all methods of an object. Is there a complete list of all possible parameters of all methods of all rails-objects?
For instance, when I looked for "belong_to", I found more complete information in tutorial than in the API API.
Where do the authors of Tutorial take their knowledge? Don’t tell they decompile hundreds of lines of source codes of each method.
I am not looking for a book. A complete reference is enough for me (similarly complete as a Ruby Language reference - e.g.
Have you checked API Dock? http://apidock.com/rails/ActiveRecord/Associations/ClassMethods/belongs_to
I find their documentation to be very easy to read and it has a lot of examples.
Of course, here it is - https://github.com/rails/rails/. Just read the code.
Did you try to go through the links? belongs_to is alias for references, there is a link to add_reference
https://api.rubyonrails.org/ contains most complete docs for ROR