freeman-jiang / nexus

🌲 A 3D, interactive semantic graph of hacker interests at TreeHacks, scraped from Slack intro messages
https://nexusgraph.vercel.app
68 stars 4 forks source link

Could you share a MWE to try the program? #1

Open BeaverInGreenland opened 9 months ago

BeaverInGreenland commented 9 months ago

Hello, Thank you for your work! Could you share a minimal working example to make the main.py run, please?

Traceback (most recent call last):
  File ".../nexus/main.py", line 46, in <module>
    with open("messages-htn-calhacks.json", "r") as f:
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: 'messages-htn-calhacks.json'
freeman-jiang commented 9 months ago

Hey! In order to protect hacker privacy, we've removed the exact data we used to generate the graph since we obtained it from the invite-only TreeHacks/Hack the North/Calhacks Slack.

If you're interested in generating your own graph, you can create a file called messages-htn-calhacks.json at the root of the repo that has a single JavaScript array in the following format.

[
  {
    "Time": "1:47 PM",
    "Name": "John Doe",
    "String": "Hello everyone! My name is John and I'm a X year student from Y university. My background is in Z and I'm looking for ..."
  },
  ...
]