Skip to content

Commit

Permalink
čištění
Browse files Browse the repository at this point in the history
  • Loading branch information
michalkasparek committed Nov 1, 2024
1 parent 16a4074 commit 5d17b8a
Show file tree
Hide file tree
Showing 5 changed files with 2,669 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
downloads/
data_raw/
.ipynb_checkpoints/
pokus.txt
13 changes: 7 additions & 6 deletions 001_cd_scrapovani.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,16 +95,17 @@ def cd(odkud, kam, pocet_dni=0):
trasy = [
('Praha','Brno'),
('Brno','Praha'),
('Praha','Ostrava'),
('České Budějovice','Plzeň'),
('Znojmo','Jihlava'),
('Karlovy Vary','Ostrava'),
('Slavonice','Plzeň'),
('Ústí nad Labem','Vídeň'),
('Brno', 'Hamburg'),
('Liberec','Salzburg'),
('Olomouc','Przemysl')
('Olomouc','Przemysl'),
('Pardubice','Poprad')
]

dny = [0,1,2,3,4,5,6,7]
dny.append(random.randint(8, 60)) ## Stahujeme celý následující týden + náhodné datum v příštích 2 měsících, takže jich za den získáme 24.
dny.append(random.randint(8, 14))
dny.append(random.randint(15, 60))

for d in dny:
for x in trasy:
Expand Down
Loading

0 comments on commit 5d17b8a

Please sign in to comment.