I need a 2-part VB6 program that scrapes flight information off of
<[login to view URL]>
Part? A runs as a background service and does this:
* Update a text file named "[login to view URL]" to indicate current retrieval status
* Download the current flight listing and contents of (3) combo-boxes
<!-- -->
* in four text files
* Wait? for a? time period that is specified in a text file named "[login to view URL]" before repeating steps 1,2,3
* Have reasonable error handling
Part? B is a desktop application with a single form containing:
* combo-boxes populated with items from text files AirlineCBO, FlightCBO and CitiesCBO
* radio buttons for “Arriving?? and “Departing"
* “Search?? button to determine results? using FlightListing file
* * Listbox for results, one flight per line
* App should return the same results as <[login to view URL]> webpage.
## Deliverables
I need a 2-part VB6 program that scrapes the flight information off of this webpage:
?
<[login to view URL]>
Part A:
Part? A is a program that runs as a background service that does this:
1. Update "Retrieving" status in a text file named "[login to view URL]" that has three lines in it:
1a. Line 1 is either "Retrieving" or "Retrieval Complete"? and current Date/Time, which indicates the state of this program and its retrieval of flight listing.
1b. Line 2 is "Last Successful retrieval at " and Date/Time which indicates when the last successful retrieval occurred.
1c. Line 3 is "Last Error" and Error Number/Description and Date/Time which indicates when the last error occurred.
2. Download the current flight listing and contents of (3) combo-boxes? (for Airline, Flight, and Destination) from <[login to view URL]>? and store that flight listing in four text files named "[login to view URL]", "[login to view URL]", "[login to view URL]", and "[login to view URL]".
3. Update [login to view URL] by "Retrieval Complete" and current Date/Time.
4. Wait? for a? time period that is specified in a text file named "[login to view URL]" before repeating steps 1,2,3.? I think the time period will be approximately 5 minutes, but may want to change it in the range of about 2 to 30 minutes.
This part of the app needs to have reasonable error handling, and handle:
(1) no internet connection (intenet service down). Test by unplugging your internet.
(2) [[login to view URL]][1] site down. Test by specifying an invalid URL.
(3) other runtime errors
Part B:
Part? B is a desktop application. The user interface is a single form with:
1.? ? ? ? ? (3) combo-boxes; for Airline, Flight, and Destination. These combo-boxes should be populated from the items found in the text files named "[login to view URL]", "[login to view URL]", and "[login to view URL]".
2.? ? ? ? ? (2) radio buttons to allow user to select either “Arriving?? and “Departing?? flights.
3.? ? ? ? ? A “Search?? button that causes your program to retrieve the results (that match the search criteria specified by the 3 combo-boxes and radio buttons) from the text file named "[login to view URL]".
4.? ? ? ? ? A Listbox to contain the results; the information for one flight on each line.
?
I also need the resulting list of flights to be stored in six STRING arrays (see below). Each flight will have one entry in each of these arrays. Each flight will correspond to a unique index into these arrays, ranging from 1 to the count of flights that match the search criteria.
-? ? ? ? ? ? ? ? ? The Carr()? array will hold the Airline’s name.
-? ? ? ? ? ? ? ? ? The FliN()? array will hold the Flight number (string).
-? ? ? ? ? ? ? ? ? The Time()? array will hold the arrival or departure time (string).
-? ? ? ? ? ? ? ? ? The Gate()? array will hold the Gate number.
-? ? ? ? ? ? ? ? ? The City()? array will hold the City Name.
-? ? ? ? ? ? ? ? ? The Rema()? array will hold the Status.
?
Testing:
Your application should return the same results as the <[login to view URL]> webpage.