Skip to content

RSS import from blogger atom file Error: undefined method `strftime' for nil:NilClass #565

@tmray

Description

@tmray

I'm trying to import a blogger blog to jekyll. Blogger no longer does an xml back up for sites. It makes you backup via Google Takeout now and only offers the sites feed.atom file. This of course does not work with the Blogger import method.

I tried to use the import RSS method with the atom file, but it gives this message when trying to do that with a Blogger site atom file

jekyll-import rss --source feed.xml --extract_tags KEY --canonical_link
jekyll_import 0.24.0 | Error:  undefined method `strftime' for nil:NilClass
/home/tom/gems/gems/jekyll-import-0.24.0/lib/jekyll-import/importers/rss.rb:54:in `write_rss_item': undefined method `strftime' for nil:NilClass (NoMethodError)

        formatted_date = item.date.strftime("%Y-%m-%d")
                                  ^^^^^^^^^
        from /home/tom/gems/gems/jekyll-import-0.24.0/lib/jekyll-import/importers/rss.rb:45:in `block in process'
        from /home/tom/gems/gems/jekyll-import-0.24.0/lib/jekyll-import/importers/rss.rb:44:in `each'
        from /home/tom/gems/gems/jekyll-import-0.24.0/lib/jekyll-import/importers/rss.rb:44:in `process'
        from /home/tom/gems/gems/jekyll-import-0.24.0/lib/jekyll-import/importer.rb:25:in `run'
        from /home/tom/gems/gems/jekyll-import-0.24.0/lib/jekyll-import.rb:30:in `block (3 levels) in add_importer_commands'
        from /home/tom/gems/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `block in execute'
        from /home/tom/gems/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `each'
        from /home/tom/gems/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `execute'
        from /home/tom/gems/gems/mercenary-0.4.0/lib/mercenary/program.rb:44:in `go'
        from /home/tom/gems/gems/mercenary-0.4.0/lib/mercenary.rb:21:in `program'
        from /home/tom/gems/gems/jekyll-import-0.24.0/exe/jekyll-import:13:in `<top (required)>'
        from /home/tom/gems/bin/jekyll-import:25:in `load'
        from /home/tom/gems/bin/jekyll-import:25:in `<main>'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions