Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


gnfb

2685 posts

Uber Geek
+1 received by user: 197

ID Verified

#299406 5-Sep-2022 11:44
Send private message

Hope this is the correct forum Do any of the enlightened know a simple process to extract a random item for sale from a specific category on Trademe?





Is an English Man living in New Zealand. Not a writer, an Observer he says. Graham is a seasoned 'traveler" with his sometimes arrogant, but honest opinion on life. He loves the Internet!.

 

I have two shops online allshop.nz    patchpinflag.nz
Email Me


Create new topic
MikeAqua
8024 posts

Uber Geek
+1 received by user: 3818


  #2963424 5-Sep-2022 11:48
Send private message

You could sort by recent listings and take the most recent item as your sample.

 

That won't be truly random, but pretty close to it.





Mike




pih

pih
667 posts

Ultimate Geek
+1 received by user: 359

Lifetime subscriber

  #2963472 5-Sep-2022 13:10
Send private message

MikeAqua:

You could sort by recent listings and take the most recent item as your sample.


That won't be truly random, but pretty close to it.



Roll a die and pick one from the top 6? 🤣

SepticSceptic
2263 posts

Uber Geek
+1 received by user: 779

Trusted

  #2963745 5-Sep-2022 22:52
Send private message

The Trade me URLs end in a 10 digit number. I reckon using the last 4 digits, randomised, will give a 10,000 item spread. May get a few misses, and the range may need to be tweaked.



SepticSceptic
2263 posts

Uber Geek
+1 received by user: 779

Trusted

  #2963746 5-Sep-2022 22:53
Send private message

Ahh, specific category.. hmm then my idea, nah.

pih

pih
667 posts

Ultimate Geek
+1 received by user: 359

Lifetime subscriber

  #2963769 6-Sep-2022 06:07
Send private message

If you need a truly random item on demand then I suspect you will need to apply for developer access and use their API. I'm intrigued, can you share what you need it for?


gnfb

2685 posts

Uber Geek
+1 received by user: 197

ID Verified

  #2963873 6-Sep-2022 14:06
Send private message

pih:

 

If you need a truly random item on demand then I suspect you will need to apply for developer access and use their API. I'm intrigued, can you share what you need it for?

 

 

I was thinking of using it as a pull to a website that would show and link to the random trademe item and on the same page have links to a selection of my items on TM.





Is an English Man living in New Zealand. Not a writer, an Observer he says. Graham is a seasoned 'traveler" with his sometimes arrogant, but honest opinion on life. He loves the Internet!.

 

I have two shops online allshop.nz    patchpinflag.nz
Email Me


Create new topic








Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.