GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Create a script to remove dead, deprecated or invalid links from planet · Issue #233 · python/planet

Create a script to remove dead, deprecated or invalid links from planet #233

New issue
Copy link
New issue
Copy link
Open
Open
Create a script to remove dead, deprecated or invalid links from planet#233
Copy link
Labels
enhancementhelp wanted

Description

@pydanny
pydanny
opened on Jun 12, 2017
Issue body actions
  • pysoy hasn't been updated in about 5 years
  • Cherrypy link is dead
  • Turbo gears hasn't been updated for over a year and the project is marginal
  • These could or should be replaced with links to the pyramid, flask, pandas, or jupyter feeds

Activity

  1. pydanny
    changed the title [-]Remove dead or deprecated links for sidebar[/-] [+]Remove dead or deprecated links from sidebar[/+] on Jun 12, 2017
  2. rochacbruno commented on Jun 13, 2017

    @rochacbruno
    rochacbruno
    on Jun 13, 2017
    Member
    More actions

    I suggested to create a validator script to run monthly #124 (comment)

    That script would take each URL check its status and validate it in RSS validator.

  3. rochacbruno
    changed the title [-]Remove dead or deprecated links from sidebar[/-] [+]Create a script to remove dead, deprecated or invalid links from planet[/+] on Jun 13, 2017
  4. rochacbruno commented on Jun 13, 2017

    @rochacbruno
    rochacbruno
    on Jun 13, 2017
    Member
    More actions

    @pydanny I changed the title of your issue to address the automation of this task.

  5. rochacbruno commented on Jun 13, 2017

    @rochacbruno
    rochacbruno
    on Jun 13, 2017
    Member
    More actions

    Script should do

    • Run weekly or monthly
    • Iterate all urls on config.ini and also python libraries and python planets list
    • Call each URL and assert (following redirects) -
      Check return code is 200
      Check data of last update is newer than one year
      Check feed is valid using feedvalidator/podcastvalidator/othervalidator
      If not valid, store the URL in a simple database (text file, sqlite or something)
    • ACTION: If link returns bad status\invalid 3 times, remove from planet
    • ACTION: If feed is outdated for more than one year, keep in planet but remove from sidebar
    • ACTION: If feed is updated and not in sidebar, put it there again
    Reacted by Mridu Bhatnagar
  6. rochacbruno
    added
    enhancement
    help wanted
    on Jun 13, 2017
  7. pydanny commented on Jun 13, 2017

    @pydanny
    pydanny
    on Jun 13, 2017
    ContributorAuthor
    More actions

    Pysoy and the others I mentioned aren't in the general feeds. They are in the "python libraries" and "python planets" lists. Will these be covered by your script or is that just for RSS feeds?

    As for your script, go ahead and remove my blog from your list already. I say that because it's going to fail your W3C validator check and I don't have the luxury of time to fix it. Do keep in mind that this aggregator is the ONLY one I know of that insists on W3C validation.

  8. rochacbruno commented on Jun 13, 2017

    @rochacbruno
    rochacbruno
    on Jun 13, 2017
    Member
    More actions

    @pydanny yeah we must discuss if using w3c validator is a good choice or not, we only need to check if the feed doesn't break the planet as it happened in the past. Maybe we can write our own simple validator so we do not need to rely on w3c one.

  9. tjguk commented on Jun 13, 2017

    @tjguk
    tjguk
    on Jun 13, 2017 via email
    Member
    More actions
    For my info -- what's the issue with the W3C validator? Is it too strict?
  10. pydanny commented on Jun 13, 2017

    @pydanny
    pydanny
    on Jun 13, 2017
    ContributorAuthor
    More actions

    Yes, it's too strict. No other aggregator I'm on blocks my RSS feed.

  11. pybites commented on Jul 19, 2017

    @pybites
    pybites
    on Jul 19, 2017
    Contributor
    More actions

    The cleanup and validation could be nice PyBites challenges -https://pybit.es/pages/challenges.html

    What do you think?

    Reacted by Bruno Rocha
  12. pybites commented on Apr 2, 2018

    @pybites
    pybites
    on Apr 2, 2018
    Contributor
    More actions

    We asked our community to give this a crack https://pybit.es/codechallenge49.html

  13. mridubhatnagar commented on Jul 2, 2018

    @mridubhatnagar
    mridubhatnagar
    on Jul 2, 2018
    More actions

    Hi

    Can I be assigned this issue to work on. I don't really know the complexity of the issue. But, I am curious to work on the same.

    Based on the above discussion what I could understand is

    • Parse through each url in config.ini
    • Check the response status
    • Validate the RSS feed (use existing service/Create a RSS feed validator)

    Links which are no more working should be removed.

    I am currently tied up with some other stuff. But, after a month shall start working on it.

    Can I please be assigned this. It looks interesting.

    Thanks

    Reacted by Bruno Rocha
  14. mridubhatnagar commented on Jul 2, 2018

    @mridubhatnagar
    mridubhatnagar
    on Jul 2, 2018
    More actions

    Also, are we validating a RSS feed based on the W3 validator?
    Or we consider a RSS feed to be valid if the feedparser is giving us no error?
    Or we are relying on none, And instead create one of our own and validate?

  15. rochacbruno commented on Jul 3, 2018

    @rochacbruno
    rochacbruno
    on Jul 3, 2018
    Member
    More actions

    @mridubhatnagar the only problem with W3 is that it considers podcast feeds invalid, so we need to have a podcast feed validator.

    Reacted by Mridu Bhatnagar
  16. mridubhatnagar commented on Jul 3, 2018

    @mridubhatnagar
    mridubhatnagar
    on Jul 3, 2018
    More actions

    @rochacbruno Fair enough. I would like to give it a shot.

    Also, I think some RSS feeds are valid. But, still not showing up on planet. Like @pybites live feed.

    I am not sure though if feedparser works for podcast feeds or not.

    I will code podcast feed validator.

    Reacted by Bruno Rocha
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementhelp wanted

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402503 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.