You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm a nerdy vinyl collector who runs a small (and free) discord group for other nerdy people like myself. I'm attempting to monitor this site: https://flailrecords.com/vinyl/
Ideally, I'd like to know when they add something, but they seem to be doing things super....confusing. When you click on an album, a window pops up giving you the options to pick a certain variant of that album (different colors, etc).
I don't know a lot about JSON, but is there a tricky way for me to watch the stock for the whole site from a single place and I suppose, would that work on any other shopify site as well?
I know this is noob territory and while I am trying things on my own and poking around their source code, I'm going to ask for help from y'all on this one :) Will update as I make my own progress, but could use any help y'all can provide
edit #2: Making progress... https://flailrecords.myshopify.com/collections/vinyl/products.json
So I guess I need to figure out how to use changedetection to read that link and let me know when something comes into stock and possible, out of stock, though that's less important....
edit #3: I'm using this, $.products[*].variants[*].id to get the variant IDs, which is pushing through just fine. But would like to include the title, possible a link and the available status. Is this possible with just JSON or do I need to godown the jq route?
edit #4: Still chipping away at this... Using this to, I think, narrow down to only variants that are available. json:$.products[*].variants[?(@.available>false)] It's pushing a bunch of data now, which is good. Now, I need to filter out what I actually want. Right?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm a nerdy vinyl collector who runs a small (and free) discord group for other nerdy people like myself. I'm attempting to monitor this site: https://flailrecords.com/vinyl/
Ideally, I'd like to know when they add something, but they seem to be doing things super....confusing. When you click on an album, a window pops up giving you the options to pick a certain variant of that album (different colors, etc).
I don't know a lot about JSON, but is there a tricky way for me to watch the stock for the whole site from a single place and I suppose, would that work on any other shopify site as well?
I know this is noob territory and while I am trying things on my own and poking around their source code, I'm going to ask for help from y'all on this one :) Will update as I make my own progress, but could use any help y'all can provide
edit #1: I did find this json link, but it's showing ALL products, not just vinyl. Poking around to see if there is a vinyl specific json file https://flailrecords.myshopify.com/products.json
edit #2: Making progress... https://flailrecords.myshopify.com/collections/vinyl/products.json
So I guess I need to figure out how to use changedetection to read that link and let me know when something comes into stock and possible, out of stock, though that's less important....
edit #3: I'm using this,
$.products[*].variants[*].id
to get the variant IDs, which is pushing through just fine. But would like to include the title, possible a link and the available status. Is this possible with just JSON or do I need to godown the jq route?edit #4: Still chipping away at this... Using this to, I think, narrow down to only variants that are available.
json:$.products[*].variants[?(@.available>false)]
It's pushing a bunch of data now, which is good. Now, I need to filter out what I actually want. Right?Beta Was this translation helpful? Give feedback.
All reactions