Sourceforge XML format has changed #10

Closed
floe opened this Issue Apr 26, 2013 · 3 comments

Comments

Projects
None yet
3 participants
Contributor

floe commented Apr 26, 2013

After the update to Allura, Sourceforge now has a new XML export format available via http://sourceforge.net/export/ and https://sourceforge.net/export/xml_export.php?group_id=xxxxxx
The old export facility is disabled, and of course, the new format is totally incompatible with the previous one, so sf2github crashes and burns on a new export:

Parsing XML export...
EXCEPTION
Traceback (most recent call last):
  File "./issues.py", line 29, in <module>
    line: trackers = soup.document.find('trackers', recursive=False).findAll('tracker', recursive=False)
    locals:
      trackers = <not found>
      soup = <local> <?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE project_export SYSTEM "http://sourceforge.net/export/sf_project_export_0.1.dtd">
<project_export>
<artifacts>
<artifact>
<field name="artifact_id">3461742</field>
<field user_id="2090344" name="submitted_by">denham2010</field>
...
      soup.document = <local> None
      soup.document.find = <not found>
      recursive = <not found>
      False = <builtin> False
      findAll = <not found>
AttributeError: 'NoneType' object has no attribute 'find'
Owner

ttencate commented Apr 26, 2013

Thanks for reporting! Unfortunately I don't have time to work on this tool, but I would welcome any pull request that improves the situation!

Contributor

jpschewe commented Apr 6, 2014

The JSON export seems to work just fine. I just did an export today and ran this tool and it didn't have any trouble with the parsing of the file.

Owner

ttencate commented Apr 6, 2014

You've got @codeguru42 to thank for that :) #14

ttencate closed this Apr 6, 2014

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