This [script](https://osf.io/reaw4) removes duplicate valid reactions in a Webnucleo network file. The default is to remove endothermic versions of the reaction. The user may modify the routine to remove duplicate reactions via other criteria.
To use, first download the file by typing
**curl -o remove_duplicate_reactions.py -J -L https://osf.io/reaw4/download**
Use the script on a Webnucleo network XML file (in this example, called *net_full.xml*). This will be a network (nuclides plus reactions) XML file. Any such XML file will do, but to obtain an [example](https://osf.io/9xmz5/), type
**curl -o net_full.xml -J -L https://osf.io/9xmz5/download**
Remove the duplicate valid reactions and dump the data to a new network file called *new_net.xml*::
**python remove_duplicate_reactions.py net_full.xml new_net.xml**
To print out the removed reactions, add the option *--print_removed*::
**python remove_duplicate_reactions.py net_full.xml new_net.xml --print_removed True**