This tool can: - screenscrape the commodities trading screen - produce the results as a tab separated values file - **TODO** upload the results to PCTB To run it, change to this directory, type `make', and then: ./ypp-commodities --tsv >commods.tsv It may put up a window asking about characters it does not understand. It is important to get these inputs right or it may misrecognise things in future. **TODO** write actual useful instructuions to cover the subtleties. The results are stored in the file `charset-15.txt'. If you need to report a bug, please be sure to remember the exact error message and circumstances. Also, for recognition problems there will probably be a very useful screenshot file called `#pages#.pnm'. This is likely to be very large so don't just email it to me, but if you can put it up on a webpage for me to download that will help. Options available: Setting the operation mode: --find-window-only Just check that we can find the YPP client window. --screenshot-only Page through and take screenshots, do not OCR --analyse-only | --same Process previously taken screenshots --everything (default) Take screenshots and process them Options to vary the processing: --single-page One screenful, no paging - results will be incomplete --quiet Suppress progress messages --screenshot-file F Store or read screenshots in F rather than #pages#.pnm --window-id ID Specified X window is the YPP client - do not search Setting the output processing: --raw-tsv Dump the raw not deduped unsorted OCR'd data --upload (default) Upload to the PCTB server --tsv Print data as clean tab-separated-values file --best-prices Print best buy and sell price for each commodity --arbitrage Print arbitrage opportunityes