Quantcast

Jump to content


Photo

Neoquest's Auto Book Buyer & Reader


  • Please log in to reply
83 replies to this topic

#1 Neoquest

Neoquest
  • 1760 posts


Users Awards

Posted 25 March 2012 - 06:16 PM

*
POPULAR POST!

Quite a few people have been requesting an Automatic book buying program, so I've written one that I think does the job pretty well.

Features:
Spoiler


Usage:

Start with a totally empty inventory for best results, and never set your budget higher than the amount of NP on hand. When starting up the program, login, give the name of the book list you will be using (without the file extension.) The book list must be in the same directory that the program is in. Lastly, set the max amount of NP you want to spend. Pretty simple.

How it Works:
  • The USAB portion of the program buys the first 50 books on your list.
  • The Auto Reader portion of the program attempts to read every item in your inventory, even if it isn't a book. This is why you should start with an empty inventory.
  • The Auto Reader sets your language to Spanish and goes through the books that were marked as boring.
  • The USAB portion of the program buys the next 50 books on your list.
  • Steps 2-4 are repeated indefinitely until the program is closed.
A log from the program in action:
Spoiler


Leave feedback and enjoy!

Attached Files


Edited by Neoquest, 04 June 2012 - 07:11 PM.


#2 Pavement

Pavement
  • 429 posts

Posted 25 March 2012 - 06:21 PM

Beautiful. Nice work!

#3 Polyphony

Polyphony
  • 50 posts

Posted 25 March 2012 - 06:37 PM

Amazing, thanks!

#4 syaopup

syaopup
  • 61 posts

Posted 25 March 2012 - 06:40 PM

Tips on how get a list of books that your pet has not read from the cheapest to the most expensive:
http://items.jellyneo.net/books/ for Book list
http://items.jellyne.../booktastic.php for Booktastic Book list
Sort by Price Ascending, do not show book images.
Copy and paste into a txt file, and format it using similar tactics used in creating AB lists.
Using this method, you won't buy books your pet has already read. Not sure if the program takes that into account.

Also, thanks for the program, the release was really timely, I have been manually doing this for the past few days! :)

Edited by syaopup, 25 March 2012 - 06:41 PM.


#5 Neoquest

Neoquest
  • 1760 posts


Users Awards

Posted 25 March 2012 - 06:42 PM

Tips on how get a list of books from the cheapest to the most expensive:
http://items.jellyneo.net/books/ for Book list
http://items.jellyne.../booktastic.php for Booktastic Book list
Sort by Price Ascending, do not show book images.
Copy and paste into a txt file, and format it using similar tactics used in creating AB lists.

Also, thanks for the program, the release was really timely, I have been manually doing this for the past few days! :)

Huh, that's pretty neat. I should have it check the already read books, thanks :)

Edited by Neoquest, 25 March 2012 - 06:44 PM.


#6 Strategist

Strategist
  • Sadmin

  • 10012 posts


Users Awards

Posted 25 March 2012 - 06:58 PM

Fuck me.... youre too good mate :) +rep when i can. cheers!

#7 Icey Defeat

Icey Defeat
  • 8298 posts


Users Awards

Posted 25 March 2012 - 07:23 PM

What headers does it send out of curiosity?

#8 Neoquest

Neoquest
  • 1760 posts


Users Awards

Posted 25 March 2012 - 07:26 PM

What headers does it send out of curiosity?


Mozilla/5.0

#9 Romy

Romy
  • Neocodex Elite Four Member


  • 4876 posts


Users Awards

Posted 25 March 2012 - 08:16 PM

Posted Image


It is a good day for lazy asses everywhere :D

#10 Icey Defeat

Icey Defeat
  • 8298 posts


Users Awards

Posted 25 March 2012 - 08:27 PM

Mozilla/5.0


Alright. Thanks :).

#11 Neoquest

Neoquest
  • 1760 posts


Users Awards

Posted 25 March 2012 - 08:37 PM

Thanks for the support everyone :)

#12 Strategist

Strategist
  • Sadmin

  • 10012 posts


Users Awards

Posted 25 March 2012 - 08:43 PM

Well I'm home from work now and have fired it up, but it doesn't do anything. Well, it shows this:

Posted Image

and i have the books.txt file in the same folder as the bookbuyer prog. I have no idea if im dong anything wrong. Please help?

#13 Neoquest

Neoquest
  • 1760 posts


Users Awards

Posted 25 March 2012 - 08:47 PM

Well I'm home from work now and have fired it up, but it doesn't do anything. Well, it shows this:

Posted Image

and i have the books.txt file in the same folder as the bookbuyer prog. I have no idea if im dong anything wrong. Please help?


Yeah, I've noticed that happens with my Krawk, but not my Draik. Lemme see if I can find what's going wrong.

Edit: This is pretty weird, it doesn't seem to be reading the file correctly. It wasn't happening with earlier testing.

Edited by Neoquest, 25 March 2012 - 08:57 PM.


#14 Strategist

Strategist
  • Sadmin

  • 10012 posts


Users Awards

Posted 25 March 2012 - 08:48 PM

ok cheers mate :)

#15 Inkheart

Inkheart
  • 268 posts

Posted 25 March 2012 - 08:58 PM

Yeah, I've noticed that happens with my Krawk, but not my Draik. Lemme see if I can find what's going wrong.


Are you sure this isn't just a case of import not being able to find "standard"? I'm guessing this piggy-backs on the Program Manager having added that to the list of available modules, but you really ought to stop using getBetween() and getUntil() anyway. : P Regular expressions are extremely powerful and meant to be used for just those sorts of things.

Also, just another friendly tip, reading a line-delimited file into an array really should be a one-line operation, not 8:

items = re.split('\r?\n', open('list.txt').read())


#16 Neoquest

Neoquest
  • 1760 posts


Users Awards

Posted 25 March 2012 - 09:06 PM

Are you sure this isn't just a case of import not being able to find "standard"? I'm guessing this piggy-backs on the Program Manager having added that to the list of available modules, but you really ought to stop using getBetween() and getUntil() anyway. : P Regular expressions are extremely powerful and meant to be used for just those sorts of things.

Also, just another friendly tip, reading a line-delimited file into an array really should be a one-line operation, not 8:

items = re.split('\r?\n', open('list.txt').read())


Thanks Inkheart :p I'll stop being an idiot tomorrow and work out the issues.

#17 Rainie

Rainie
  • 854 posts

Posted 25 March 2012 - 11:58 PM

I actually remember a topic suggesting this O: !

Thanks for your awesome & hard work again ♥ ^^

#18 Turnip

Turnip
  • woomy woomy manmenmi!!

  • 2511 posts


Users Awards

Posted 26 March 2012 - 05:01 AM

Whoa, sweet!! I'll definitely be using this soon~ Thank you!! ♥

Mozilla/5.0


Mmm, what about people who don't use FF? :o Can we just change that bit to the browser we use or would everything explode and not work? /just wondering



#19 Neoquest

Neoquest
  • 1760 posts


Users Awards

Posted 27 March 2012 - 05:38 PM

I've got a pretty bad flu so don't expect me to work on/fix this for several days.

#20 Strategist

Strategist
  • Sadmin

  • 10012 posts


Users Awards

Posted 10 April 2012 - 05:29 PM

any updates on this mate? Figured out the issue with it not working properly?

#21 Neoquest

Neoquest
  • 1760 posts


Users Awards

Posted 10 April 2012 - 05:33 PM

any updates on this mate? Figured out the issue with it not working properly?


No, I kinda forgot after I was sick, I'll check it out if I've got time today.

#22 Strategist

Strategist
  • Sadmin

  • 10012 posts


Users Awards

Posted 10 April 2012 - 05:41 PM

No, I kinda forgot after I was sick, I'll check it out if I've got time today.


Cool thanks :)

#23 Aarpm

Aarpm
  • 92 posts

Posted 10 April 2012 - 07:48 PM

Looking forward to this getting fixed. Thanks!

#24 RedRaz0r

RedRaz0r
  • 52 posts

Posted 10 April 2012 - 10:01 PM

Just wanted to pop in and say thanks for this beautiful program, eagerly awaiting its return!

#25 cornymikey

cornymikey
  • 160 posts

Posted 11 April 2012 - 05:42 AM

This sounds like a great idea. Just one suggestion though: is there any way to match the list of cheapest books with a list of books your pet has already read, to make sure you don't buy books you've already read?

Don't know if this is a difficult task or not, but it would be a great addition to this wonderful idea if possible. Thanks again!


0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users