before 1.0: create other 2 utilities, make sure memory usage is sensible, be unicode safe, package for osx & windows # other utils getabook getbnbook # other todos mkdir of bookid and save pages in there use wide string functions when dealing with stuff returned over http; it's known utf8 bug in get(): if the \r\n\r\n after http headers is cut off between recv buffers what happens if we receive not a http header? does recv loop forever, in a memory killing manner? be more reasonable with memory: only allocate each page when it's processed, point to cookies rather than copy them print stderr in gui as well package for osx package for windows - ideally pack all in one binary try supporting 3xx in get, if it can be done in a few lines by getting Location line, freeing buf, and returning a new iteration. add https support to get write some little tests would likely be rather tricky, but building for android would be nice. how it would work would be modifying the getgbook src slightly, redefining function calls to be findable by the java, and then writing java stuffs to call it. gui could either be done from the java directly, or from xml; both are gross options. see: http://developer.android.com/resources/tutorials/hello-world.html http://marakana.com/forums/android/examples/49.html ## getgbook use realloc to size pages memory structure appropriately ### notes Google will give you up to 5 cookies which get useful pages in immediate succession. It will stop serving new pages to the ip, even with a fresh cookie. So the cookie is certainly not everything. If one does something too naughty, all requests from the ip to books.google.com are blocked with a 403 'automated requests' error for 24 hours. What causes this ip block is less clear. It certainly isn't after just trying lots of pages with 5 cookies. It seems to be after requesting 100 new cookies in a certain time period - 100 in 5 minutes seemed to do it, as did 100 in ~15 minutes. The method of getting all pages from book webpage does miss some; they aren't all listed. These pages can often be requested, though, though at present getgbook can't, as if a page isn't in its initial structure it won't save the url, even if it's presented.