Artifacts Gallery Guilds Search Wiki Login Register

Welcome, Guest. Please login or register. - Thinking of joining?
a Summer day - @490.64
Activity rating: Four Stars Posts & Arts: 63/1k.beats Random | Recent Posts | Guild Recents
News: It's the silly things you'll remember :trash: 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 Embed
Author Topic: javascript help: using the melonland API to get itch.io RSS feeds & display them  (Read 911 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: a Spring night » 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://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: <html>Useless nested <div>Sprout LeafCache the SquirrelPoochSonic the HedgehogMiles Knuckles the EchidnaShadow the HedgehogRouge the BatAmy RoseCream the RabbitE-102 GammaEmerlEggmansea angel!PlanarianBall CreatureHuman Connectioncinnamoroll gift
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:
Bug!You're a Star!Flinstone VitaminI got robbed by Dan Q on Melonland!Always working hard!Known Apple shill
« Reply #1 on: a Spring night » 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: a Spring day by Melooon » Logged


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

Artifact Swap: Red TulipLurby?here comes the bapSmile on, rainbow flower!Plank
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: a Spring day » 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://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: <html>Useless nested <div>Sprout LeafCache the SquirrelPoochSonic the HedgehogMiles Knuckles the EchidnaShadow the HedgehogRouge the BatAmy RoseCream the RabbitE-102 GammaEmerlEggmansea angel!PlanarianBall CreatureHuman Connectioncinnamoroll gift
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 MelonLand Editor Recent Edits Tenement Arcade Want to Login or Join ? Forum Art Hub Chat Webring Web Guides Graphics Catalogue Wiki Newsletters Image Stream
Melon's Sites TamaNotchi Textures PixelSea GifyPet MoMG Ozwomp Online Loom Videos Leaky Webring Melonking
Tools Melon Software ArtHub Embed Maker ML Passports
Outlinks Frutiger Aero Forum Onio Club m15o's Web Services 32Bit Cafe iMood Webrings Internet Phone Book HTML Energy Declarations Hackers & Designers
Zap!
Minecraft: Online
Join: craft.melonking.net