I am trying to create a new script for books from the website www.fnac.com, based on ISBN, and I wonder how I can check the ISBN that was just provided as a "new entry" is not already available in the database.
I 'd rather avoid using the script "find duplicates" afterwards.
By the way, I have two more questions :
- How does the script "find duplicates" work ? There is no loop on the records, and it seems so simple !
- How can I modify the size unit that appears on the bottom right of the screen so I can display "€" instead of "Mo" ? I found out how to switch from "o" to "Mo" or "Go" in the preference file, and I created a language file in french for books, but though I modified all the entries I could find related to size, still the size appears in bytes.
Well another question :-)
If I query alapage.com for a book from firefox, I get a beautiful page with all the data I want. The same query from AMC provides a subset of the data, as it seems to be considered as a WAP request. Does anybody know how to trick alapage.com ?
Thanks, and keep up the good work !
How to check a "new" entry does not exist yet ?
- the scripts cannot "manipulate" the list. This is one of the things that I have to add. Currently the script is called for each movie that has to be processed. The search of duplicates actually works only if you run the script on all movies.
- Unit is made from two things: a base unit "o" or "B" depending on the language (so defined in the translation file) and a prefix which depends on an option of the Preferences window, in "Media files importation" (choices being "none", K, M or G) which also has an effect on how sizes of files are imported (not important for a book manager
)
- For that "alapage" problem one possibility is that they check the user agent. You can easily change Firefox's useragent using "user agent switcher" extension. AMC's useragent is:
Mozilla/5.0 (compatible; Ant Movie Catalog using Indy Library)
It is not possible to easily do the change in the other way, i.e. changing AMC's useragent, because I want to let sites owner a way to easily block AMC if they do not want to allow people to run script getting data from their site.
But nothing forbids you from recompiling the program to change that useragent, or just change it in the RCData sections of the .exe file using a resource editor (well, that one is an easy change, but I can say that it is not my fault if people change the program with that).
- Unit is made from two things: a base unit "o" or "B" depending on the language (so defined in the translation file) and a prefix which depends on an option of the Preferences window, in "Media files importation" (choices being "none", K, M or G) which also has an effect on how sizes of files are imported (not important for a book manager

- For that "alapage" problem one possibility is that they check the user agent. You can easily change Firefox's useragent using "user agent switcher" extension. AMC's useragent is:
Mozilla/5.0 (compatible; Ant Movie Catalog using Indy Library)
It is not possible to easily do the change in the other way, i.e. changing AMC's useragent, because I want to let sites owner a way to easily block AMC if they do not want to allow people to run script getting data from their site.
But nothing forbids you from recompiling the program to change that useragent, or just change it in the RCData sections of the .exe file using a resource editor (well, that one is an easy change, but I can say that it is not my fault if people change the program with that).
Thanks for the answer.
I now have the Euro symbol instead of this awful "o". That's far better for a price ! :-)
Regarding the original question, I think I could generate a book listing with ISBN and title only, and open it in the script to look for the number. Well, I wonder if it is worth the pain :-)
I will try again with alapage, as FNAC's catalog is pretty poor :-(
Thanks again.
I now have the Euro symbol instead of this awful "o". That's far better for a price ! :-)
Regarding the original question, I think I could generate a book listing with ISBN and title only, and open it in the script to look for the number. Well, I wonder if it is worth the pain :-)
I will try again with alapage, as FNAC's catalog is pretty poor :-(
Thanks again.