useful-forks / useful-forks.github.io

Improving GitHub's Forks list discoverability through automatic filtering. The project offers an online tool and a Chrome extension.
https://useful-forks.github.io/
MIT License
1.18k stars 61 forks source link

Allow exporting results in at least csv format #22

Closed kunaltyagi closed 3 years ago

kunaltyagi commented 3 years ago

Nice project :)

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

payne911 commented 3 years ago

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. :)

kunaltyagi commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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.