Ошибка при конвертации blogger xml в пеликан - PullRequest
0 голосов
/ 04 августа 2020

Я пытался использовать pelican-import для импорта моего существующего блога blogger. Я сделал следующее:

divyessh@divyessh-ubutu-hp:~$ pelican-import --blogger -o ~/output ~/Desktop/blog.xml
WARNING: Feeds generated without SITEURL set properly may not be valid
WARNING: No timezone information specified in the settings. Assuming your timezone is UTC for feed generation. Check http://docs.getpelican.com/en/latest/settings.html#timezone for more information
Traceback (most recent call last):
  File "/home/divyessh/.local/bin/pelican-import", line 8, in <module>
    sys.exit(main())
  File "/home/divyessh/.local/lib/python3.8/site-packages/pelican/tools/pelican_import.py", line 1018, in main
    fields2pelican(fields, args.markup, args.output,
  File "/home/divyessh/.local/lib/python3.8/site-packages/pelican/tools/pelican_import.py", line 786, in fields2pelican
    for (title, content, filename, date, author, categories, tags, status,
  File "/home/divyessh/.local/lib/python3.8/site-packages/pelican/tools/pelican_import.py", line 204, in blogger2fields
    entries = soup.feed.findAll('entry')
AttributeError: 'NoneType' object has no attribute 'findAll'

Я много искал, но не смог найти решения. Любая помощь будет оценена по достоинству.

...