[geneagrapher] 195/226: Adding test-data grabbing script.
Doug Torrance
dtorrance-guest at moszumanska.debian.org
Sat Jul 11 17:11:08 UTC 2015
This is an automated email from the git hooks/post-receive script.
dtorrance-guest pushed a commit to branch master
in repository geneagrapher.
commit e0620827cac6295dca240cc0c111c5bef941316c
Author: David Alber <alber.david at gmail.com>
Date: Sat Dec 24 00:09:34 2011 -0800
Adding test-data grabbing script.
The test data gathered using this script can be used as the files
hosted by a local web server during testing.
---
tests/geneagrapher/testdata/get_data.py | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/tests/geneagrapher/testdata/get_data.py b/tests/geneagrapher/testdata/get_data.py
new file mode 100644
index 0000000..4073097
--- /dev/null
+++ b/tests/geneagrapher/testdata/get_data.py
@@ -0,0 +1,16 @@
+import urllib2
+
+if __name__ == '__main__':
+ record_ids = [7298, 7383, 10275, 12681, 15165, 17851, 17946, 18230, 18231,
+ 18232, 18233, 18603, 19953, 28292, 29458, 29642, 30484,
+ 36991, 47064, 51261, 51907, 52965, 52996, 53658, 55175,
+ 62547, 79297, 79562, 79568, 84016, 89841, 99457, 127470,
+ 127946, 137705, 137717, 143630, 151876, 999999999,
+ 79568583832L]
+
+ for record_id in record_ids:
+ url = 'http://genealogy.math.ndsu.nodak.edu/id.php?id='+str(record_id)
+ print 'Getting record {}'.format(record_id)
+ page = urllib2.urlopen(url)
+ with open('{}.html'.format(record_id), 'w') as fout:
+ fout.write(page.read())
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/geneagrapher.git
More information about the debian-science-commits
mailing list