This Node.js script automates the process of downloading PDF files from the BSE India Corporate announcement API based on specific search criteria, such as category, date range, and type. It uses Axios for HTTP requests and file handling, allowing users to fetch and store PDFs locally for further analysis or archiving purposes.
- Fetches PDF files from the BSE India API
- Customizable search criteria (category, date range, type)
- Downloads and saves PDFs locally in a specified directory
- Node.js installed on your machine
- npm (Node Package Manager) for installing dependencies
- Clone the repository to your local machine.
- Install dependencies using
npm install
. - Update the
headers
object in the script with valid BSE India API headers. - Run the script using
node index.js
ornpm start
.
- Modify the
fromDate
,toDate
, and other parameters in the script as needed. - Customize the download directory by changing the
downloadDir
variable.
Contributions are welcome! If you have any suggestions, improvements, or bug fixes, feel free to submit a pull request.
This project is licensed under the MIT License.