Skip to content

Meganitrospeed/Nazi-CORS

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Nazi-CORS

Nazi CORS is a NodeJS project that I made as a solution to CORS errors that students at IES El Rincon where having while making XLST transformations directly in the client Its called NAZI CORS as a critique to all the "OPEN DATA" websites that have rate limiting and CORS headers that prohibit several types of requests

Installation

Install the dependencies using NPM to install the Express server.

npm install

Usage

            url:  'http://www.bne.es/media/datosgob/dibi/bibliotecas.xml',

This line needs to be changed, it indicates what file gets downloaded

  fs.rename('biblio.xml', 'C:\\Users\\Rudiger\\WebstormProjects\\Nazi-CORS\\public\\biblio.xml',

This line indicates where the file is saved, and where to save the renamed file. we make this as a security feature in case the server banned us or timed us out, we handle the error in such a way that there is always a .xml with data avaiable to make a fresh transformation

After that you need to execute the script with

node bin/www

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

GNU AGPLv3

About

XML Crawler to avoid CORS

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published