In IBS SPSS how can I output open ended feedback grouped by demographics - spss

I am working on a project in IBM SPSS 25. I have a series of responses where users were invited to provide open ended responses to questions. I would like to organize and output them based on answers to demographic questions.
For example:
QID99_1 is the open ended question.
QID3 is a Demographic question
I would like to organize QID99_1 by QID3

Try this -
report format=list /variables= QID99_1 /break= QID3.
You can look up report command to play around with format options.

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.

JQL query to filter JIRAs based on the last commented date by a particular account / user

I am new to JIRA / JQL, and wanted help in knowing if the following is possible:
I want to filter JIRAs which have been commented on by a particular user (a bot account) in the past xx days
I want to filter JIRAs which have a particular regex in its comments in the past xx days
If the above cannot be done, I am open to suggestions as to how to achieve it using a combination of labels and description in the JIRA!
Sorry, but comments are stored within each Issue and you can't search for them globally using the native JQL query. You'd need to utilise the REST API to iterate through the Issues, extracting all the comments, then filtering the results.
Refer to this article in the Atlassian community Jira blog on the same topic and what third party tools can help work around the issue.

Programmatic access to Google Docs

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.

What is the best way to extract data from wiki tables, and links from that table to JSON?

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

How to aggregate analytics from Google, Twitter, YouTube, Facebook, etc [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 2 years ago.
Improve this question
I have a video blog for which I would like to track certain statistics, including stats from Google Analytics, Twitter, YouTube, Facebook, etc.
The problem is that the various stats are on different websites, which require different logins, etc. It takes a long time to actually view everything. I am looking for a way to be able to aggregate all of this information in one place.
I have searched quite a bit on Google, Mashable, Delicious, etc and I haven't found any websites that do what I want. Are my searching skills bad, or does this really not exist?
The data in which I am interested appears to be available in readily parsable forms (see below), but I am hesitant to write an app to do this myself, because of an already more than full workload.
Data I want to aggregate:
Google Analytics -- tracking on my website
number of visitors
traffic sources
use Data Export API -- http://code.google.com/apis/analytics/docs/gdata/gdataDeveloperGuide.html
Twitter
number of followers
number of retweets
new # messages
new direct messages
Twitter API -- (sorry, I can only post one hyperlink because I am new)
Facebook fan page
number of fans
new posts on wall
Facebook API -- (sorry, I can only post one hyperlink because I am new)
Tumblr
number of followers
Video
number of views
view location
number of comments
number of channel subscribers
do this for
YouTube -- CSV report available at (sorry, I can only post one hyperlink because I am new)
MetaCritic
Feed burner (RSS)
number of subscribers
CSV report available at (sorry, I can only post one hyperlink because I am new)
SEO stuff
Google PageRank
Alexa rankings
So is there an app that does this already, or should I do this myself? I would like a quick and dirty way to do this -- I was thinking something like Yahoo pipes, but it appears to not be up to the task. I could probably get it done in Grails, but that might be more trouble than it's worth. Other ideas?
I have a better answer. YQL has community data tables for all the services you listed. You can pull in all the different values through their API.
http://developer.yahoo.com/yql/
You could try creating a Google Spreadsheet and use their external data import tools.
http://docs.google.com/support/bin/answer.py?hl=en&answer=75507
The biggest problem will probably be access authenticated APIs.
Presumably that all of the services above has fashioned a statistics API, I would advice you to write it yourself rather than battling an integration war with a bunch of aggregating programs.
Here's an iphone app that does at least a bit of this:
http://ego-app.com/
I don't know a single tool that can do this, off the top of my head. But you can chain a few tools together to do this.
1- If you're on Windows, use Website Watcher. It has a macro-recording tool to login a webpage, a regex-based tool to filter content and a scripting language that let you email/export the result. IMO, this will let you extract data from just any web page/RSS/forums.
2- Then use Dropbox to automatically upload the result files to your Dropbox's public folder (because you will need the public link to these file).
3- Use Yahoo Pipes to consolidate/aggregate the result files.
I suggest you try Metricly http://metricly.com/ that is natively intergating Facebook & Google Analytics data. It is extensible by nature and with a little bit of tweaking you can push any meric to it. I enjoy it.
I originally suggested this as an edit to abraham's answer but it was rejected:
Mikael Thuneberg has written a freely available google script for pulling GA data into Google Docs using the GA API: http://www.automateanalytics.com/2010/04/google-analytics-data-to-google-docs.html
I use it for creating client dashboards all the time. I suspect there may be others for pulling in twitter/facebook data etc.
And Google have just released this tool for importing GA data into Google Docs:
http://analytics.blogspot.co.uk/2012/08/automate-google-analytics-reporting.html
Also see SEOTools for Excel which can pull some facebook and twitter data as well as Google Analytics through the API.
YouTube has a public API http://developers.google.com/youtube/analytics to retrieve reports for your videos and channels.

Resources