Chat Artifacts Gallery Guilds Search Wiki Login Register

Welcome, Guest. Please login or register. - Thinking of joining the forum??
May 01, 2026 - @366.59 (what is this?)
Activity rating: Four Stars Posts & Arts: 60/1k.beats Random | Recent Posts | Guild Recents
News: :wizard: You can make anything on the web! :wizard: Guild Events: Show Your Cool Virtual Gardens

+  MelonLand Forum
|-+  Life & The Web
| |-+  ✁ ∙ Web Crafting
| | |-+  ☕︎ ∙ Everyone Site (eSite)
| | | |-+  javascript help: using the melonland API to get itch.io RSS feeds & display them


« previous next »
Pages: [1] Print
Author Topic: javascript help: using the melonland API to get itch.io RSS feeds & display them  (Read 213 times)
ribose
Sr. Member ⚓︎
****
View Profile WWWArt


⚘ ⚘ ⚘ ⚘ ⚘
⛺︎ My Room
StatusCafe: ribose
iMood: ribose
Itch.io: My Games
RSS: RSS

Guild Memberships:
Artifacts:
I met Dan Q on Melonland!Fio the HamsterAmmoniteSee A Bug Summer 2025 Participanta puppy for your travelsFirst 1000 Members!
« on: April 09, 2026 @980.09 »

hello! i'm trying to make a page that displays everything made on itch.io by melonland forum members using the shiny new MelonLand API, but my javascript skills are insufficient! :tnt:

here's what i have so far...
  • part one: get the data (i almost have this)
    • fetch the list of forum member's itch.io usernames from https://forum.melonland.net/api.php?itch
    • i can get the results to show up in the console log, but i'm still not sure how to get an array of just the usernames
  • part two: generate list of RSS feeds from the username list (totally stuck)
    • on itch.io, you can get an RSS feed for any account! for example: https://itch.io/games/by-melonking.xml
    • i think i should be able to write a loop to plop the usernames into "itch.io/games/by-[USERNAME].xml", but i have no idea how to format it. i've looked over w3schools, mdn, and stackoverflow but can't seem to find anything that resembles what i'm trying to do.
  • part three: generate HTML from RSS items (basically done)
    • this javascript feed reader/aggregator was almost exactly what i wanted! easy  :grin:
    • i added some known feeds to the array to test out the idea (it works)
    • adjusted the code to include images in addition to the text and links

the page is on everyone site at everyone.melonland.net/arcade, so you can view the source and make edits at https://forum.melonland.net/pad.php?p=arcade (everyone is welcome to make edits to the style, too!)

to summarize where i'm stuck in one question: how do i connect the username list to the RSS list?
(also, is this even the right way to be thinking about this? maybe there's a better/easier/more efficient way i'm missing?)
Logged

https://camo.githubusercontent.com/491b9e205611e603fa426d303bef52528c10ba8b96d3139e39a2e38103e5c563/68747470733a2f2f7269626f2e7a6f6e652f38387833312f736974652f7269626f73652e706e67 https://camo.githubusercontent.com/54e6ab289e4df0e4e42c9c30c886d2d7c8df708686029a1f654e2930389454b4/68747470733a2f2f7269626f2e7a6f6e652f38387833312f6d696e652f76696577736f757263652e706e67 https://camo.githubusercontent.com/f5bfa6417506fb7531aa82818e33c1ab1277070812531c09638c5aca5d2ea164/68747470733a2f2f7269626f2e7a6f6e652f38387833312f6d696e652f7777772e706e67 https://camo.githubusercontent.com/f7d9283e2ad6924bc82c68b6bd1637dfe82b9baa6362247cee489c9f8723bed8/68747470733a2f2f7269626f2e7a6f6e652f38387833312f6d696e652f7465616c2e706e67 https://camo.githubusercontent.com/66b9d37563323d2962eccea0381ded1337d1d12652da870b82e8c40d5c2e0d54/68747470733a2f2f7269626f2e7a6f6e652f73756e6461792f666973682f726174686572626566697368696e2e706e67

Artifact Swap: Phone SquirrelRoachmanstar
Melooon
Hero Member ⚓︎
*****
View Profile WWWArt


So many stars!
⛺︎ My Room
SpaceHey: Friend Me!
StatusCafe: melon
iMood: Melonking
Itch.io: My Games
RSS: RSS

Guild Memberships:
Artifacts:
old-timey tunes~♪Flinstone VitaminAlways working hard!PoochKnown Apple shillcoolest melon on the web!
« Reply #1 on: April 09, 2026 @15.65 »

I pushed a small API fix so that itch usernames are properly filtered when people put their itch url instead  :drat:

I also added some loading logic you can see in the code, it actually fully works now, but it takes almost a full minute to render the page because the itch RSS feeds, are quite slow to load. So its looks like its not loading!

So you defo wanna add a loading alert (maybe even a loading bar!), but its a cool page!  :grin:

EDIT: I think if we split it up into a page system, so it only loaded 20 games at a time, that would be a lot faster! (you can script the pages into it, they don't need to be literally different pages) Just put a limit on the for loop of the RSS fetch, then offset the loop every time you click a forward or back button.

EDIT EDIT: Done!
« Last Edit: April 09, 2026 @603.51 by Melooon » Logged


everything lost will be recovered, when you drift into the arms of the undiscovered

Artifact Swap: Cup o' JaneI met Dan Q on Melonland!poochLasagna
ribose
Sr. Member ⚓︎
****
View Profile WWWArt


⚘ ⚘ ⚘ ⚘ ⚘
⛺︎ My Room
StatusCafe: ribose
iMood: ribose
Itch.io: My Games
RSS: RSS

Guild Memberships:
Artifacts:
I met Dan Q on Melonland!Fio the HamsterAmmoniteSee A Bug Summer 2025 Participanta puppy for your travelsFirst 1000 Members!
« Reply #2 on: April 11, 2026 @719.68 »

EDIT EDIT: Done!
amazing!! thank you so much for your help with this, Melon! :transport:
i'm learning a lot from your code, and i'm also so excited that the page WORKS!!!
:ha:

whenever i see a post from someone here with an itch page linked, i always visit, but this makes it so much easier to browse through them all. it's an impressive collection! i hope i can set aside some time to play a bunch of them soon!

the itch RSS feeds, are quite slow to load
oooh yeah, i wondered if there would be performance issues but i didn't expect the feeds to be the slow part! maybe itch is throttling the requests? their anti-bot measures are pretty strict... i get that cloudflare security verification thing every time i look at one of their browse pages :tongue:
Logged

https://camo.githubusercontent.com/491b9e205611e603fa426d303bef52528c10ba8b96d3139e39a2e38103e5c563/68747470733a2f2f7269626f2e7a6f6e652f38387833312f736974652f7269626f73652e706e67 https://camo.githubusercontent.com/54e6ab289e4df0e4e42c9c30c886d2d7c8df708686029a1f654e2930389454b4/68747470733a2f2f7269626f2e7a6f6e652f38387833312f6d696e652f76696577736f757263652e706e67 https://camo.githubusercontent.com/f5bfa6417506fb7531aa82818e33c1ab1277070812531c09638c5aca5d2ea164/68747470733a2f2f7269626f2e7a6f6e652f38387833312f6d696e652f7777772e706e67 https://camo.githubusercontent.com/f7d9283e2ad6924bc82c68b6bd1637dfe82b9baa6362247cee489c9f8723bed8/68747470733a2f2f7269626f2e7a6f6e652f38387833312f6d696e652f7465616c2e706e67 https://camo.githubusercontent.com/66b9d37563323d2962eccea0381ded1337d1d12652da870b82e8c40d5c2e0d54/68747470733a2f2f7269626f2e7a6f6e652f73756e6461792f666973682f726174686572626566697368696e2e706e67

Artifact Swap: Phone SquirrelRoachmanstar
Pages: [1] Print 
« previous next »
 

Melonking.Net © Always and ever was! SMF 2.0.19 | SMF © 2021 | Privacy Notice | ~ Send Feedback ~ Forum Guide | Rules | RSS | WAP | Mobile


MelonLand Badges and Other Melon Sites!

MelonLand Project! Visit the MelonLand Forum! Support the Forum
Visit Melonking.Net! Visit the Gif Gallery! Pixel Sea TamaNOTchi

MelonLand Nav

@000

Want to Login or Join ?

Minecraft: Online
Join: craft.melonking.net