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

Allow exporting results in at least csv format #22

Closed
kunaltyagi opened this issue Mar 14, 2021 · 4 comments
Closed

Allow exporting results in at least csv format #22

kunaltyagi opened this issue Mar 14, 2021 · 4 comments
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@kunaltyagi
Copy link

Nice project :)

Sometimes, it takes a long time to get all results, but the output can't be easily exported.

@payne911
Copy link
Collaborator

Thank you! :)

I've actually been considering this so that people can share results through a simple URL.

My problem is that there is a maximum length to URLs so it'd be hard to encode very long result lists in there. I'm still trying to land on a viable solution.

If you have any ideas, feel free to share. :)

@payne911 payne911 added the enhancement New feature or request label Mar 14, 2021
@kunaltyagi
Copy link
Author

For now, how about allowing the user to download the data (as csv/markdown)?

Later, you can allow the users to add a paste using their own pastebin account. No need to work with URLs :)

If you want url, then serialize the results, then compress them (lzma?) Might be possible to cover almost all repos (since you also filter results with no modifications on master).

@payne911 payne911 added the help wanted Extra attention is needed label Mar 19, 2021
@payne911
Copy link
Collaborator

payne911 commented Mar 19, 2021

For now, after a very quick research, I've found a solution which seems to at least work for very simple cases: https://stackoverflow.com/a/33807762/9768291

I haven't tested it with my more "complex" table which contains SVGs, for example. I'll get around to looking deeper into this at some point when I have time.

I think a nice and complete solution would offer both options:

  1. Export to a CSV file
  2. Share with an URL

@payne911
Copy link
Collaborator

payne911 commented Mar 23, 2021

I started working on this:

csv

And I get the right format for the data:

image

I'm only missing the part where I can actually trigger a download.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants