Greetings,
Now that i have modified my nib file to display comic information, i would like to build a plugin that will automatically retrieve the comic information for me from comics.org/wikipedia/comicbookdb. I downloaded the example plugin, however i don't even know where to start. Has anyone written one of these before that used data from an http page? Is the source code available for the search plugin in the extra section for cdpedia?
thanks for any help you can offer
comics search plugin
Here is a sample plugin for comics.org. You will have to drop a copy of your modified Bookpedia into the build folder under both Release and Debug so that the plug-in project can launch the program automatically for easy testing and debugging.
With the debug version you can even set a breakpoint in your code and use command-y to step through your code and see how your variables change as you are parsing the information.
For Wikipedia the fact that their site does not let you narrow the search to just comics means you have to find out a way to find out the comics between other results say the movie of Spiderman. But the info boxes that Wikipedia uses are very useful especially since the Wikipedia language in it's raw format for the boxes is easier to parse as it's meant for a computer to understand. To get an XML with this format use Special:Export feature for example http://en.wikipedia.org/wiki/Special:Export/Spider-Man
With the debug version you can even set a breakpoint in your code and use command-y to step through your code and see how your variables change as you are parsing the information.
For Wikipedia the fact that their site does not let you narrow the search to just comics means you have to find out a way to find out the comics between other results say the movie of Spiderman. But the info boxes that Wikipedia uses are very useful especially since the Wikipedia language in it's raw format for the boxes is easier to parse as it's meant for a computer to understand. To get an XML with this format use Special:Export feature for example http://en.wikipedia.org/wiki/Special:Export/Spider-Man
adambot ~
were you able to successfully make the plugin work? i'd be very interested in your set-up, if so. i'm looking for a new book database, and thought if comics could work as well, then maybe this would be the way to go.
conor ~
add me to the list of dedicated comicspedia requesters.
~mattydee
were you able to successfully make the plugin work? i'd be very interested in your set-up, if so. i'm looking for a new book database, and thought if comics could work as well, then maybe this would be the way to go.
conor ~
add me to the list of dedicated comicspedia requesters.
~mattydee
comic database
I dont know if this would work but I check comicspriceguide.com, granted it doesnt really list detailed info about writer/artist/inker, etc but it is very useful for finding variant covers and prices.
You can download a sample plug-in from here. (At the moment the plug-in is set to look at our site and take out the version number and a screenshot.)
To use the new project and make it work you have to place a copy of Bookpedia.app where the plug-in is created because there is a script included that will automatically place the plug-in in Bookpedia.app and launch the program when you build the plug-in.
You want to place the program in both "Products/Debug/" and "Products/Release/" (you can find out the full path by doing 'get info' on the project file).
Once that's done, look for Executables on the left-hand side of the window and ctrl-click it to choose 'Add new'. Name the new executable Bookpedia and point it to your copy of Bookpedia in "Products/Debug/". Now you can use build and debug (command-y) to test your plug-in.
The great advantage of this is you can ctrl-click on the code and say 'add breakpoint' and the debugger will come up and stop the program at that point and you can step through each instruction and see the variables change.
Also this plug-in is old, so we don't use our own convenience methods but you will see them in the controller header that you can use the methods to pull out sections from strings instead of using the NSScanner:
NSString *aTitle = [results stringBetween:@"<title>" and:@"</title>"];
To use the new project and make it work you have to place a copy of Bookpedia.app where the plug-in is created because there is a script included that will automatically place the plug-in in Bookpedia.app and launch the program when you build the plug-in.
You want to place the program in both "Products/Debug/" and "Products/Release/" (you can find out the full path by doing 'get info' on the project file).
Once that's done, look for Executables on the left-hand side of the window and ctrl-click it to choose 'Add new'. Name the new executable Bookpedia and point it to your copy of Bookpedia in "Products/Debug/". Now you can use build and debug (command-y) to test your plug-in.
The great advantage of this is you can ctrl-click on the code and say 'add breakpoint' and the debugger will come up and stop the program at that point and you can step through each instruction and see the variables change.
Also this plug-in is old, so we don't use our own convenience methods but you will see them in the controller header that you can use the methods to pull out sections from strings instead of using the NSScanner:
NSString *aTitle = [results stringBetween:@"<title>" and:@"</title>"];
i just wanted to reopen the discussion of a comics search plug-in. i don't know anything about coding, but i sure enjoy my pedias (books, games, dvds), and in the absence of a dedicated comics pedia, would love the option to customize bookpedia with plug-in.
if anyone is till working on this, i'd be glad to beta test it for you.
thanks!
if anyone is till working on this, i'd be glad to beta test it for you.
thanks!