Built something? We create video reels & spotlights for GitHub projects.Promote your project →
Home / Developers / AniaBadger
Developer Profile

AniaBadger

Discovered public repositories for AniaBadger in the GitHub catalog.

↗

AniaBadger/MoviesDataVis

User Instructions: To use the application one must be connected to the internet. For the application to read from a saved xml file, one must change the absolute path to the file in tab fixXML line 25. Explanation: I pull data from various movie APIs as XML. One of them works fine in browsers, but when called from Processing using loadXML(), it returns 403 Forbidden error. To overcome that I constructed my own url connection method that changes user-agent and http.agent properties to imitate browsers. I then save the result in the xml file on my disk using: FileOutputStream fos = new FileOutputStream("C:/Users/Ania/Documents/Processing/coursework/data/chosenMovie.x ml"); The problem is that Processing is saving this file inside the folder that Processing runs from, when only the name of file is specified. To be able to load it in my sketch using XML xml = loadXML("chosenMovie.xml"); chosenMovie.xml needs to be inside the data folder of the specific sketch. It works fine when I give the absolute path to the output stream, as given above, but FileOutputStream doesn't work with any relative paths.

FOR MAINTAINERS

Built something? Put it in front of millions of developers.

We make a short reel about your project and post it across YouTube, Instagram, Threads, and X. Send a link, we do the rest.

SPONSORED Sponsored Partner