Skip to content

A web scraper to collect isotope decay data from Wikipedia

Notifications You must be signed in to change notification settings

jamesgrimmett/wikitopes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 

Repository files navigation

wikitopes

A web scraper to collect isotope decay data from Wikipedia

Usage

>>> import wikitopes
>>> df = wikitopes.get(elements = ['zinc','plutonium'])
>>> df
   nuclide   Z    N  ... daughter_isotope spin-parity branching_ratio
0     54Zn  30   24  ...             52Ni          0+    1.000000e+00
1     55Zn  30   25  ...             53Ni       5/2#    1.000000e+00
2     55Zn  30   25  ...             55Cu       5/2#    1.000000e+00
3     56Zn  30   26  ...             56Cu          0+    1.000000e+00
4     57Zn  30   27  ...             56Ni       7/2#    6.500000e-01
..     ...  ..  ...  ...              ...         ...             ...
44   244Pu  94  150  ...        (various)          0+    1.230000e-03
45   244Pu  94  150  ...            244Cm          0+    7.300000e-11
46   245Pu  94  151  ...            245Am      (9/2−)    1.000000e+00
47   246Pu  94  152  ...           246mAm          0+    1.000000e+00
48   247Pu  94  153  ...            247Am       1/2+#    1.000000e+00

[79 rows x 9 columns]

You can leave the decay mode/branching ratio unprocessed in raw form

>>> import wikitopes
>>> df = wikitopes.get(elements = ['zinc','plutonium'], raw_decay_mode = True)      
>>> df                                                                      
   nuclide   Z    N  ...        decay_mode daughter_isotope spin-parity
0     54Zn  30   24  ...                2p             52Ni          0+
1     55Zn  30   25  ...                2p             53Ni       5/2#
2     55Zn  30   25  ...                β+             55Cu       5/2#
3     56Zn  30   26  ...                β+             56Cu          0+
4     57Zn  30   27  ...       β+, p (65%)             56Ni       7/2#
..     ...  ..  ...  ...               ...              ...         ...
44   244Pu  94  150  ...        SF (.123%)        (various)          0+
45   244Pu  94  150  ...  ββ− (7.3×109%)            244Cm          0+
46   245Pu  94  151  ...                β245Am      (9/2−)
47   246Pu  94  152  ...                β246mAm          0+
48   247Pu  94  153  ...                β247Am       1/2+#

[79 rows x 8 columns]

Requirements

Python 3.6+ with numpy, pandas, requests, bs4

About

A web scraper to collect isotope decay data from Wikipedia

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages