I was handed several components and I'm struggling to put them together.
What I have is
- a JavaScript file that scrapes a Swagger API (using node-fetch),
- a JSON file with information from the Swagger site (path, basePath, title, summary, tags, operation, response) for each resource,
- a few lines to convert JSON to CSV with python, and
- formulas to structure the JSON in an Excel view.
I'm trying to automate this so that I can run a script that scrapes the SwaggerAPI, creates a JSON file (or a CSV file directly) and then structures itself according to the formulas.
I am familiar with most of the pieces (I wrote the Excel formulas myself) and Python, but I'm still learning Node.js so that I can understand the scraping.
I tried rewriting the scraping piece into a python script that uses Beautiful Soup, but it seemed to return the JavaScript of the site rather than the information that I need for the Excel view.
I appreciate any help and advice on how to structure this.
Thank you, Alec