A simple tool to scrape JetPhotos and FlightRadar24 data using Node.js. It provides an API endpoint (work in progress) and a CLI tool (caller.js) for interactive data retrieval.
- Fetch JetPhotos data (aircraft images) based on registration.
- Fetch flight data from FlightRadar24.
- Save images with unique IDs.
- Designed to be extendable and easy to deploy.
- Node.js (v14 or higher).
- Internet connection.
- Clone the repository or download the files.
- Navigate to the project directory.
- Install dependencies:
npm install
This will provide a deployable serverless API for fetching data.
Run the caller.js file for interactive data retrieval:
node caller.js
- Follow the prompts to provide:
- Aircraft registration (e.g., abcd1234).
- Number of photos to fetch (optional, default: 3).
- Number of flights to fetch (optional, default: 8).
- The scraper retrieves the data and saves images in the current directory.
- Corrupted Images: Images downloaded are broken due to incorrect handling of the response. A fix is being implemented to ensure proper image download.
- CLI implementation (caller.js).
- Fix image download issues.
- Finalize the API endpoint.
- Add deployment support for serverless platforms.
- Fork the repository.
- Create a feature branch:
git checkout -b feature-name
- Commit changes and push:
git push origin feature-name
- Submit a pull request.
MIT License. See LICENSE file for details.