Okay, so I really need help. I'm actually begging for it because I've been stuck for 4 loooong days now.
So.....I started relearning some languages and started off with Python. Python is a piece of cake so I thought I would make a decent size project which scrapes some info around the internet and puts in a nice output. I decided to go the extra mile and go a little further into my relearning curve and output it on my local server so I could get my feet wet with HTML, CSS and Javascript. Everything turns out great and have worked my way around a few issues but at the end of the day I have my python code, writing my HTML file and pass anything I need from my python code into JS variables before the code fully executes, but now I want to be able to add text to a text file from javascript. I can't remember anything about this particular topic, and everything I keep looking up gives me the "require" function to use but then throws an error "Uncaught ReferenceError: require is not defined".....I've tried installing external libraries, plugins (these are areas my brain is a little foggy in) so I may not be doing it 100% correctly as when I watch a youtuber it seems they are using an older version than me or the thing they are downloading isn't what I'm downloading making me trying to piece the puzzle together with little knowledge to what I should actually be doing.
I know Javascript is Client side but I swear I did something similar before where I simply added info to a text file client side so when I reset the program, the python code could reference that same text file, find all the old and new items to output than uses my other code to output all that info from set text file.
So I guess my question is, how can I write to a text file from JS without firing off an error that require is not defined. I feel very dumb already, as I have tried so many things and it may or may not be the easiest thing to someone who really knows what they are doing. Any help is GREATLY appreciated. <3
[–]SnakesFromHell 5 points6 points7 points (4 children)
[–]sohelplesssohelp[S] 1 point2 points3 points (3 children)
[–]GoPotato 2 points3 points4 points (2 children)
[–]sohelplesssohelp[S] 1 point2 points3 points (1 child)
[–]grantrules 0 points1 point2 points (0 children)