hackclub / webring

💍 A webring for the personal websites of Hack Club members

Home Page:https://webring.hackclub.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Setup pinger to maintain webring

khrj opened this issue · comments

Webring sites keep going down :(

Here's what I feel is a solution -- Periodically scrape all webring sites

  • If a non 2xx code is returned, or
  • If the site does not contain the webring code

temporarily kick the member from the webring (until next scrape)

Would GitHub actions work for this?

I think so -- should I give it a shot?

There'll need to be a separate database apart from the approved webring members, to store the "current webring members"

That'd be awesome @KhushrajRathod, let's wait for @googol88's input here though.

There'll need to be a separate database apart from the approved webring members, to store the "current webring members"

Could we simply add a field to the JSON?

Could we simply add a field to the JSON?

That'd require committing to git from every actions run

Yep

Hi y'all this is looking pretty neat! I'm thinking a database isn't strictly required, but it would be slightly easier for contributors to add their own site to the webring without the extra JSON field. But that's not really important anyway, my main point is that we'd probably be better off using sam's idea since overall I think it's simpler. I never would have thought of doing this myself, thanks for bringing this up @KhushrajRathod!

Cool. I'll make a PR soon