Chat Artifacts Gallery Guilds Search Wiki Login Register

Welcome, Guest. Please login or register. - Thinking of joining the forum??
April 19, 2026 - @939.83 (what is this?)
Activity rating: Three Stars Posts & Arts: 45/1k.beats ~ Boop! The forum will close in 61.beats! Random | Recent Posts | Guild Recents
News: :cry: Are u having fun? Guild Events: There are no events!

+  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 130 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


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: shoeMicrowaveAir MailCup 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


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