Coder Social home page Coder Social logo

Can't sync with SpyCast about greg HOT 5 CLOSED

manolomartinez avatar manolomartinez commented on May 28, 2024
Can't sync with SpyCast

from greg.

Comments (5)

manolomartinez avatar manolomartinez commented on May 28, 2024

Hi, no, this feed appears to be mostly fine. There is just a typo in the date of the offending entry, which reads "Tue, 207Oct 2015 10:30:00 EST". Feedparser, and then greg, chokes on the Oct 207 thing :). If you avoid the entry titled 'Special Breed of Warrior: An Interview with Former SEAL Clinton Emerson', it should work fine.

Anyway, greg should probably be more resilient to this kind of problems. I'll think about how to do this. Thanks for reporting!

from greg.

 avatar commented on May 28, 2024

Perhaps sanitize the date with something like dateutil then if you can't verify the date format, then get the date of the previous feed entry and increment that date by 1 day and use that as the date for the problematic feed entry. Perhaps notify the user of the change, demonstrate why the feed item date was change, and notify of the string which threw the error.

from greg.

manolomartinez avatar manolomartinez commented on May 28, 2024

Actually, feedparser takes care of the parsing for us, and it does an excellent job at that. But yeah, the second part of your suggestion looks sensible to me. I'll try to get to it later this week.

from greg.

 avatar commented on May 28, 2024

Does 73152e1 address this?

from greg.

manolomartinez avatar manolomartinez commented on May 28, 2024

It does, for the time being. A more general solution would be preferable, though -- I'm working on it.

from greg.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.