A few python bits for processing tosback2 rule xml


Service: (NONE)
Status: DECLINED
Case: none
Changes: 3
Source: link
Author: import script Bot


A few python bits for processing tosback2 rule xml


Comments:
On 2018-05-18 13:49:31 UTC, Deleted wrote:

imported from 2428

On 2018-05-23 12:40:55 UTC, Deleted wrote:

https://groups.google.com/forum/#!msg/tosdr/_2x3OUnFTJI/v5Vd4JVRuPQJ In order to examine the existing tosback2 rules, I wrote some quick
python bits. I though I'd share them here, in case anyone else finds
them useful.

Jesse

-------------------------------------------
import xml.etree.ElementTree as et
import os

#change to tosback2/rules directory

#list of document names
b=sum([[x.attrib['name'] for x in et.parse(y).getroot()] for y in
os.listdir('.') if '.xml' in y],[])

#document names, sorted by frequency
c=list(set(zip(map(b.count,b),b))); c.sort(); c

#print files with parsing errors
for y in os.listdir('.'):
try: unused=et.parse(y)
except Exception, e: print y, e

--
tosdr.org | twitter.com/tosdr | github.com/tosdr
---
You received this message because you are subscribed to the Google Groups "Terms of Service; Didn't Read" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tosdr+unsubscribe@googlegroups.com.
To post to this group, send email to tosdr@googlegroups.com.
Visit this group at http://groups.google.com/group/tosdr?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

On 2018-05-30 12:50:13 UTC, Deleted wrote:

imported status as declined



We track editorial changes to analyses and updates to a point's status and display the previous versions here as part of an effort to promote transparency regarding our curation process.

Version 1: 2018-05-30 12:50:13 UTC by Deleted

Previous Title: No changes recorded

Updated Title: No changes recorded

Previous Analysis: No changes recorded

Updated Analysis: No changes recorded

Previous Status: PENDING

Updated Status: DECLINED

Version 2: 2018-05-18 13:49:31 UTC by Deleted

Previous Title:

Updated Title: A few python bits for processing tosback2 rule xml

Previous Analysis:

Updated Analysis: A few python bits for processing tosback2 rule xml

Previous Status:

Updated Status: PENDING

Version 3: 2018-05-17 08:37:52 UTC by Deleted

Previous Title:

Updated Title: CenturyLink Online Account TOS

Previous Analysis:

Updated Analysis: CenturyLink Online Account TOS

Previous Status:

Updated Status: PENDING