Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

generate an index.html file #2

Open
sujee opened this issue Mar 19, 2020 · 5 comments
Open

generate an index.html file #2

sujee opened this issue Mar 19, 2020 · 5 comments

Comments

@sujee
Copy link
Member

sujee commented Mar 19, 2020

write a simple python script to generate an index.html in this format

<h1> Dataset </h1>

- stocks
   - sp500.csv   (50 KB)
- house prices
   - house price-simple.csv  (10 kb)
@sujee
Copy link
Member Author

sujee commented Mar 23, 2020

tried the script, it only create links for for first level directories.
we need to recursively list all the files.

IF you want to use bash

ls -lR 
# or
find

but I think you will probably be better off in python

@mdani38
Copy link
Contributor

mdani38 commented Mar 23, 2020

I don't understand what you mean. It worked for me. When you click on a link for a first level directory, it will take you into the directory for whatever depth. All of the links to the data will download or open.

@sujee
Copy link
Member Author

sujee commented Mar 30, 2020

try this
https://elephantscale-public.s3.amazonaws.com/data/index.html

click on any links.

S3 will not list directories.
So we need to give links to all files

@mdani38
Copy link
Contributor

mdani38 commented Mar 30, 2020 via email

@mdani38
Copy link
Contributor

mdani38 commented Mar 30, 2020

https://github.com/elephantscale/datasets/blob/master/create-index-new.sh Try this. Hopefully this works better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants