Skip to content

Commit

Permalink
Слияние всех .csv в один и .gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
mrR2D2 committed Sep 13, 2017
1 parent ecf0406 commit 5c1dd60
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
*.csv

*.json
!003-data-example.json

*.zip

*.html
13 changes: 9 additions & 4 deletions go.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
python 001-order.py -f
python 002-fetch.py
python 003-parse.py
python2 001-order.py -f
python2 002-fetch.py
python2 003-parse.py

head -1 $(ls opendata-115-2* | head -1) > opendata-115-all.csv
tail -n+2 -q opendata-115-2* >> opendata-115-all.csv

zip "dataset-115.bel-$(date +'%Y%m%d-%H%M%S').zip" opendata*
python 008-build.py

python2 008-build.py

3 comments on commit 5c1dd60

@abitrolly
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

А что с 3им питоном не так было?

@mrR2D2
Copy link
Contributor Author

@mrR2D2 mrR2D2 commented on 5c1dd60 Sep 13, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ругается, что у модуля urllib нету метода urlopen, и на строки в некоторых местах тоже, т.к. во втором питоне 'строка' - тип byte, а в третьем - тип str. @abitrolly

@abitrolly
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

req = urllib.urlopen(url)
да, похачил. =) Обычно указываю версию сам, если она специфична.

Please sign in to comment.