From 85054539fe308d8c466b9e92d0045e3bae5b7be0 Mon Sep 17 00:00:00 2001 From: emkael Date: Sun, 12 Oct 2014 22:14:12 +0200 Subject: * separate directory for dumps --- dumps/.gitignore | 1 - dumps/second-a-lap.py | 2 +- dumps/second-a-lap/.gitignore | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) delete mode 100644 dumps/.gitignore create mode 100644 dumps/second-a-lap/.gitignore diff --git a/dumps/.gitignore b/dumps/.gitignore deleted file mode 100644 index 2211df6..0000000 --- a/dumps/.gitignore +++ /dev/null @@ -1 +0,0 @@ -*.txt diff --git a/dumps/second-a-lap.py b/dumps/second-a-lap.py index e8221b5..12cf514 100755 --- a/dumps/second-a-lap.py +++ b/dumps/second-a-lap.py @@ -18,7 +18,7 @@ def fetch(url): for table in tables: name = "".join(x for x in title if x.isalnum()) + '-' + str(i) + '.txt' print name - path = open(name, 'w') + path = open('second-a-lap/' + name, 'w') print >>path, etree.tostring(table) i += 1 diff --git a/dumps/second-a-lap/.gitignore b/dumps/second-a-lap/.gitignore new file mode 100644 index 0000000..2211df6 --- /dev/null +++ b/dumps/second-a-lap/.gitignore @@ -0,0 +1 @@ +*.txt -- cgit v1.2.3