This zone is sleeping right now! ZzzZZzzz

Better not disturb it! ~You go to the petrol station and buy a slushy instead, everything is cool!~

This area will open again in 000.beats!

(Learn about Swatch Time)

Some other zones are awake :^]


Artifacts Gallery Guilds Search Wiki Login Register

Welcome, Guest. Please login or register. - Thinking of joining?
Autumn, 05 Oct 2026 - @717.60
Forum Activity: Three Stars Random | Recent Posts | Guild Recents
News: :wizard: You can make anything on the web! :wizard: Guild Events: weekly zine jam 15: dreams
Super News: ~~MelonLand's Halloween Profile Design Contest 2026~~
+  MelonLand Forum
|-+  Da Web Revival
| |-+  ☕︎ ∙ Everyone Site (edit this page)
| | |-+  javascript help: using the melonland API to get itch.io RSS feeds & display them


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


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

Guild Memberships:
Artifacts:
Visited on Melon's 10th Anniversary!Learning to swim!Fio the HamsterAmmoniteSee A Bug Summer 2025 ParticipantFirst 1000 Members!
« on: Spring, 09 Apr 2026 @980 » Toggle Font Embed

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://ribose.neocities.org/88x31.png

Artifact Swap: Taking my fish for a walkBunnylittle ufoWhite-Breasted NuthatchArnoldAnother WizardRing-Billed GullCommon RavenAmerican WoodcockAmerican RobinAmerican GoldfinchSprout LeafCache the SquirrelHungry Mousegoth gfMellohi10k:)Sonic the HedgehogKnuckles the Echidna
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:
You're a Star!Flinstone VitaminWavy Shoulder-Length Hair with BangsBug!Top HatI got robbed by Dan Q on Melonland!
« Reply #1 on: Spring, 09 Apr 2026 @016 » Toggle Font Embed

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: Spring, 09 Apr 2026 @604 by Melooon » Logged


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

Artifact Swap: black n cyan yappin kittayHave a chillpillRed Tulip100 coins<3curious fish
ribose
Sr. Member ⚓︎
****
View Profile WWWArt


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

Guild Memberships:
Artifacts:
Visited on Melon's 10th Anniversary!Learning to swim!Fio the HamsterAmmoniteSee A Bug Summer 2025 ParticipantFirst 1000 Members!
« Reply #2 on: Spring, 11 Apr 2026 @720 » Toggle Font Embed

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://ribose.neocities.org/88x31.png

Artifact Swap: Taking my fish for a walkBunnylittle ufoWhite-Breasted NuthatchArnoldAnother WizardRing-Billed GullCommon RavenAmerican WoodcockAmerican RobinAmerican GoldfinchSprout LeafCache the SquirrelHungry Mousegoth gfMellohi10k:)Sonic the HedgehogKnuckles the Echidna
Pages: [1] Print Embed 
« previous next »
 

Melonking.Net © Always and ever was! SMF 2.0.19 | SMF © 2021 | Privacy Notice | Send Feedback | Supporters ♥ 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
@000 Melon
Land
Forum Art Hub Chat Webring Explore Random Recent Tenement Arcade Want to Login or Join ? Web Craft Guide Graphic Catalogue Wiki Help I'm Lost! Link Land Newsletters Image Stream Minecraft: Online
Zap!
Passport Sites tamaNOTchi Asatte Add your site?
Aero Archive Onio Cafe 32 Bit Cafe Status Cafe