Write a program for Windows. Program will perform searches on Amazon using criteria from an existing text data file.?
The program will search for a given title from a list of titles in a specifically formatted text file; if the title does not appear in the first set of results the program will call for the next screen, continuing in this manner until the desired title finally appears. The program will append the title’s name and rank to a text file and if the text file does not exist will create one with a specific name based on the time and date. ? When the desired title appears in the search list, the program will select the title’s link and allow the resulting page to display in the web browser. The program will determine a correct match based on a unique 10 digit ID number which does not appear on screen from Amazon, but is part of the page’s source code links.
## Deliverables
Background information: [login to view URL] allows users to search for any particular book title. Amazon book search returns 12 titles at a time. Clicking the “next?? button brings up subsequent lists of 12 titles at a time.?
The suggested internal command format for initially searching on Amazon is as follows:
<[login to view URL]>
replacing the words “ TITLE+OF+BOOK+GOES+HERE ?? with the actual title being searched for, using the ? “ + ?? sign to separate each word. As mentioned previously, the program will detect if the 10 digit product code appears in the search results, and if not will execute a “ next page “ command until the desired searched item comes up, unless the doing so would exceed the maximum search attempts per title as specified by the user in the programs opening options.
* * *
The Program will allow for the following user definable options. The options will be selected? from a screen dispalyable at the program's opening.
The program will have an options screen which will allow for the setting of the following variables:
**Time between requests** (i.e. time before generating a “next page?? command)
**Time the title screen is left displayed before moving to the next title**
**Maximum number of times per 24 hour time period the program will run automatically at random intervals if left on**
**Depth**: how far should the program search for any given title (i.e. 1,000 titles, 500 titles, etc.) [note: the program can easily convert this number into screens searched by dividing by 12 as 12 books appear per search screen.]