Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader

Notices

Reply
 
Thread Tools Search this Thread
Old 11-29-2023, 02:36 PM   #1
chrisridd
Guru
chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.
 
chrisridd's Avatar
 
Posts: 973
Karma: 2209358
Join Date: Nov 2011
Location: London, UK
Device: Kobo Aura, Kobo Aura ONE, PocketBook InkPad Color 3
Kobo store price comparisons

I wrote a little perl script to help me find which Kobo "country" store gives the cheapest prices for a book. It might be helpful to others.

GitHub gist

To use it, find the book you're interested in on the store, and pass the entire URL to the script. e.g.

Code:
kobocompare https://www.kobo.com/us/en/ebook/alliance-rising-1
and wait a little bit.

I've hardcoded a set of currency conversions to GBP, which obviously could be improved by someone. Equally obviously it could check each store in parallel instead of one at a time. Patches welcome, as they say.
chrisridd is offline   Reply With Quote
Old 12-01-2023, 08:20 PM   #2
Cootey
Absentminded Reader
Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.Cootey ought to be getting tired of karma fortunes by now.
 
Cootey's Avatar
 
Posts: 1,286
Karma: 6916983
Join Date: Apr 2017
Device: Kobo Mini, Libra Colour & Elipsa; Kindle Paperwhite 3 & 4; iOS apps
That seems handy, but don’t you require a separate account for each Kobo store? I have one for Japan and another for the US and their accounts and libraries are separate. I’ve held off creating a Canadian account for that reason, though if I buy it cheap from Canada (they have more sales, the bums! Haha), I could always strip the DRM and sideload it into my US Kobo.

I’m curious how you utilize this script.
Cootey is offline   Reply With Quote
Advert
Old 12-01-2023, 11:49 PM   #3
Aleron Ives
Wizard
Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.Aleron Ives ought to be getting tired of karma fortunes by now.
 
Posts: 1,429
Karma: 16297052
Join Date: Sep 2022
Device: Kobo Libra 2
You can "travel" on the Kobo store by changing your country and using PayPal so you don't have to enter a billing address.
Aleron Ives is offline   Reply With Quote
Old 12-02-2023, 06:00 AM   #4
chrisridd
Guru
chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.
 
chrisridd's Avatar
 
Posts: 973
Karma: 2209358
Join Date: Nov 2011
Location: London, UK
Device: Kobo Aura, Kobo Aura ONE, PocketBook InkPad Color 3
Kobo's Japan store might be different, but so far I've successfully bought books from India, Switzerland, Spain, Turkey, Norway all by:
  1. Removing my payment details from my account
  2. Setting my "billing country" to the desired country
  3. Going to the relevant store
  4. Buying with PayPal, or credits on my account via a gift card
The Kobo apps are all able to download the purchased books.

Or in other words from experience Kobo's DRM just locks you to an account (an email address) and not a billing address/country/store.

Last edited by chrisridd; 12-02-2023 at 06:01 AM. Reason: formatting
chrisridd is offline   Reply With Quote
Old 12-02-2023, 06:05 AM   #5
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 76,410
Karma: 136564696
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by chrisridd View Post
Kobo's Japan store might be different, but so far I've successfully bought books from India, Switzerland, Spain, Turkey, Norway all by:
  1. Removing my payment details from my account
  2. Setting my "billing country" to the desired country
  3. Going to the relevant store
  4. Buying with PayPal, or credits on my account via a gift card
The Kobo apps are all able to download the purchased books.

Or in other words from experience Kobo's DRM just locks you to an account (an email address) and not a billing address/country/store.
IMHO, it's best to get your eBooks as ePub which you can remove the DRM (if there is DRM), read as ePub, or convert to KePub to read.
JSWolf is online now   Reply With Quote
Advert
Old 12-02-2023, 06:06 AM   #6
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 76,410
Karma: 136564696
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
Quote:
Originally Posted by chrisridd View Post
I wrote a little perl script to help me find which Kobo "country" store gives the cheapest prices for a book. It might be helpful to others.

GitHub gist

To use it, find the book you're interested in on the store, and pass the entire URL to the script. e.g.

Code:
kobocompare https://www.kobo.com/us/en/ebook/alliance-rising-1
and wait a little bit.

I've hardcoded a set of currency conversions to GBP, which obviously could be improved by someone. Equally obviously it could check each store in parallel instead of one at a time. Patches welcome, as they say.
Could you please convert this to Python to run in calibre?
JSWolf is online now   Reply With Quote
Old 12-02-2023, 11:39 AM   #7
chrisridd
Guru
chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.
 
chrisridd's Avatar
 
Posts: 973
Karma: 2209358
Join Date: Nov 2011
Location: London, UK
Device: Kobo Aura, Kobo Aura ONE, PocketBook InkPad Color 3
Quote:
Originally Posted by JSWolf View Post
Could you please convert this to Python to run in calibre?
I'm not a Python programmer so unfortunately not. It might be a nice project for someone, maybe you could request it in the Calibre forum section?
chrisridd is offline   Reply With Quote
Old 07-02-2024, 01:02 PM   #8
chrisridd
Guru
chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.
 
chrisridd's Avatar
 
Posts: 973
Karma: 2209358
Join Date: Nov 2011
Location: London, UK
Device: Kobo Aura, Kobo Aura ONE, PocketBook InkPad Color 3
Sadly this script no longer works due to changes on kobo.com. The website now seems to return a page full of Javascript that you have to execute to get the "real" web page.

Maybe it is possible to rewrite it as a Javascript "bookmarklet" for your web browser? Help from Javascripting gurus is welcomed!
chrisridd is offline   Reply With Quote
Old 07-12-2024, 06:08 PM   #9
sydmalicious
Cantankerous Contrarian
sydmalicious ought to be getting tired of karma fortunes by now.sydmalicious ought to be getting tired of karma fortunes by now.sydmalicious ought to be getting tired of karma fortunes by now.sydmalicious ought to be getting tired of karma fortunes by now.sydmalicious ought to be getting tired of karma fortunes by now.sydmalicious ought to be getting tired of karma fortunes by now.sydmalicious ought to be getting tired of karma fortunes by now.sydmalicious ought to be getting tired of karma fortunes by now.sydmalicious ought to be getting tired of karma fortunes by now.sydmalicious ought to be getting tired of karma fortunes by now.sydmalicious ought to be getting tired of karma fortunes by now.
 
sydmalicious's Avatar
 
Posts: 136
Karma: 506950
Join Date: Mar 2014
Location: ::1
Device: Kobo Sage 32gb, Kindle Paperwhite
I may be able to do this. It might be a little while as I am pretty busy, but looking at this Perl script it shouldn't be too hard- both Python and Perl are scripting languages and I work with Python a lot at my job.
sydmalicious is offline   Reply With Quote
Old 07-12-2024, 06:18 PM   #10
chrisridd
Guru
chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.
 
chrisridd's Avatar
 
Posts: 973
Karma: 2209358
Join Date: Nov 2011
Location: London, UK
Device: Kobo Aura, Kobo Aura ONE, PocketBook InkPad Color 3
I’d be interested in seeing what you come up with.

The pages I seem to download now are from Cloudflare and just contain lots of JavaScript which needs to be executed. Some of that seems to be to compute complex json requests to other URLs which then give some actual HTML.

Hence running it inside an actual browser, or maybe node.js (?) might be needed.
chrisridd is offline   Reply With Quote
Old 07-12-2024, 06:24 PM   #11
sydmalicious
Cantankerous Contrarian
sydmalicious ought to be getting tired of karma fortunes by now.sydmalicious ought to be getting tired of karma fortunes by now.sydmalicious ought to be getting tired of karma fortunes by now.sydmalicious ought to be getting tired of karma fortunes by now.sydmalicious ought to be getting tired of karma fortunes by now.sydmalicious ought to be getting tired of karma fortunes by now.sydmalicious ought to be getting tired of karma fortunes by now.sydmalicious ought to be getting tired of karma fortunes by now.sydmalicious ought to be getting tired of karma fortunes by now.sydmalicious ought to be getting tired of karma fortunes by now.sydmalicious ought to be getting tired of karma fortunes by now.
 
sydmalicious's Avatar
 
Posts: 136
Karma: 506950
Join Date: Mar 2014
Location: ::1
Device: Kobo Sage 32gb, Kindle Paperwhite
Yeah. If you still want to use JavaScript, you could use something like Puppeteer which is a headless Chromium web scraper, much like Selenium and Beautiful Soup for Python. In fact using Puppeteer if you're wanting to keep it JavaScript would probably save you some time and headaches.

I wrote a broken script for Puppeteer which is in this GitHub gist, just to give you a feel for how it works: https://gist.github.com/twhite96/38b...05de2990dcbb9c

I am not sure how to share the automation with the community though. Maybe the creator of Calibre has some ideas? I think I have his name right but don't want to misspell it in this comment.

The docs are here: https://pptr.dev/

Last edited by sydmalicious; 07-12-2024 at 06:25 PM. Reason: Context for links
sydmalicious is offline   Reply With Quote
Old 07-12-2024, 06:27 PM   #12
sydmalicious
Cantankerous Contrarian
sydmalicious ought to be getting tired of karma fortunes by now.sydmalicious ought to be getting tired of karma fortunes by now.sydmalicious ought to be getting tired of karma fortunes by now.sydmalicious ought to be getting tired of karma fortunes by now.sydmalicious ought to be getting tired of karma fortunes by now.sydmalicious ought to be getting tired of karma fortunes by now.sydmalicious ought to be getting tired of karma fortunes by now.sydmalicious ought to be getting tired of karma fortunes by now.sydmalicious ought to be getting tired of karma fortunes by now.sydmalicious ought to be getting tired of karma fortunes by now.sydmalicious ought to be getting tired of karma fortunes by now.
 
sydmalicious's Avatar
 
Posts: 136
Karma: 506950
Join Date: Mar 2014
Location: ::1
Device: Kobo Sage 32gb, Kindle Paperwhite
Quote:
Originally Posted by chrisridd View Post
I’d be interested in seeing what you come up with.

The pages I seem to download now are from Cloudflare and just contain lots of JavaScript which needs to be executed. Some of that seems to be to compute complex json requests to other URLs which then give some actual HTML.

Hence running it inside an actual browser, or maybe node.js (?) might be needed.
Hmmmm. Let me see if I can't see what I can grab with a couple cURL commands or nmap. This sounds like they're behind a WAF which will make it difficult to actually grab that data without some finagling which would be a bad idea. I'll try to see what actually gets returned from the cURL command.
sydmalicious is offline   Reply With Quote
Old 07-12-2024, 06:33 PM   #13
sydmalicious
Cantankerous Contrarian
sydmalicious ought to be getting tired of karma fortunes by now.sydmalicious ought to be getting tired of karma fortunes by now.sydmalicious ought to be getting tired of karma fortunes by now.sydmalicious ought to be getting tired of karma fortunes by now.sydmalicious ought to be getting tired of karma fortunes by now.sydmalicious ought to be getting tired of karma fortunes by now.sydmalicious ought to be getting tired of karma fortunes by now.sydmalicious ought to be getting tired of karma fortunes by now.sydmalicious ought to be getting tired of karma fortunes by now.sydmalicious ought to be getting tired of karma fortunes by now.sydmalicious ought to be getting tired of karma fortunes by now.
 
sydmalicious's Avatar
 
Posts: 136
Karma: 506950
Join Date: Mar 2014
Location: ::1
Device: Kobo Sage 32gb, Kindle Paperwhite
I ran the cURL command cURL -I -L <kobo url> and the response is a 403 HTTP code which means it is forbidden. The headers indicate to me that, like I wrote in the previous reply, they are behind Cloudflare's WAF and the only way to get the data would be behind a proxy, if that. I don't think this can be done easily.
sydmalicious is offline   Reply With Quote
Old 07-16-2024, 04:24 PM   #14
fotonmoton
Member
fotonmoton is faster than slow light.fotonmoton is faster than slow light.fotonmoton is faster than slow light.fotonmoton is faster than slow light.fotonmoton is faster than slow light.fotonmoton is faster than slow light.fotonmoton is faster than slow light.fotonmoton is faster than slow light.fotonmoton is faster than slow light.fotonmoton is faster than slow light.fotonmoton is faster than slow light.
 
fotonmoton's Avatar
 
Posts: 19
Karma: 29470
Join Date: Jul 2024
Location: Ukraine
Device: Kobo Libra 2
Post Kobo Price!

Hi all!

TLDR: install userscript or Firefox/Chrome extension and go to book page. After a couple of minutes you will get a list of all available prices for different countries.

Let me introduce you the Kobo Price! A small userscript that automate price comparison for you. It will try to gather all available country prices, convert them to USD, sort and present them on book page. You just need to open book/audiobook page, wait a couple of minutes (waiting time is highly depends on your connection and PC performance) and get a list on the right side of the page.

You have a couple of options how you can install and use it right now:

1. Easiest way (not sure, honestly) is to download userscript and add it to
Tampermonkey/Violentmonkey/Greasemonkey.
1.1 Download one of the following extensions for your browser:
https://violentmonkey.github.io/
https://www.greasespot.net/
https://www.tampermonkey.net/
1.2 Go to koboprice.user.js and click "raw" on the right side
1.3 If extension don't recognize it as userscript and don't open window for importing it simpy copy and add it manually. You can find out how to do it in the extension docs.
1.4 That's it. You can now go to the book page and test it

2. Install the Kobo Price extension. Right now I go to the finish line only with Chrome extension so you can grab it here: Kobo Price Chrome
2.1 For the Firefox - I'm in the process of review and getting approval from the Firefox itself. So no public extension for now. But! I'm attaching self signed extension below that you can import manually. Just open it in the Firefox and it should show you prompt with confirmation.

3. Build extension from sources yourself and sideload it. Maybe I will add instructions in the future, if someone will have interest in tinkering with it or submitting changes. In two words: get it run
PHP Code:
npm install && npm build && npm ext-build 
and you will get an artifact in the web-ext-artifacts folder. Check Chrome/Firefox docs for how to load it. I want to add a little reactivity to it, so that you can see progress in real time. But, maybe, it will stay as is

Some notes:
- You can open developer tools in the browser, go to console and filter messages by "KOBOPRICE". You will see how and what prices are loading right now.

- Prices are cached as well as the currency rates in your browser localstorage. You can go to the page several times, safely reload it and script will continue from where it left. After all prices are loaded the will show immediately on the page. Prices are cached for one day so, be sure to check your favorite book every morning. If something not working as expected you can go to localstorage tab in your brawser developer tools and without hesitation delete "KOBOPRICE" key.

- I've managed to test it on Firefox for Android. So if you are really lazy as I am you can install Firefox extension or userscript on your phone. If you find out how to do it


Any suggestions are welcome, please test it and say what you think. Also, what to highlight that this "lifehack" will not survive for long. I think it was possible to do the same steps with Amazon, to get lowest price from different stores. But after sometime they make it nearly impossible to change your billing address to bypass their price inequality. But the war with the monopolies is not over! We will prevail!


Click image for larger version

Name:	Screenshot 2024-07-16 at 22-11-19 Capital in the Twenty-First Century eBook by Thomas Piketty - .png
Views:	55
Size:	206.3 KB
ID:	209605
Click image for larger version

Name:	Screenshot 2024-07-16 at 22-10-34 Capital in the Twenty-First Century eBook by Thomas Piketty - .png
Views:	58
Size:	323.5 KB
ID:	209606
Click image for larger version

Name:	Screenshot from 2024-07-16 22-11-46.png
Views:	54
Size:	126.1 KB
ID:	209608
kobo_price-1.1.9.xpi

Last edited by fotonmoton; 07-16-2024 at 04:28 PM.
fotonmoton is offline   Reply With Quote
Old 07-16-2024, 05:42 PM   #15
chrisridd
Guru
chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.chrisridd ought to be getting tired of karma fortunes by now.
 
chrisridd's Avatar
 
Posts: 973
Karma: 2209358
Join Date: Nov 2011
Location: London, UK
Device: Kobo Aura, Kobo Aura ONE, PocketBook InkPad Color 3
Really nice work! I will be trying this out tomorrow.
chrisridd is offline   Reply With Quote
Reply

Tags
price, store


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Kobo Clara HD and Libra 2 Comparisons and Questions Benjamelon Which one should I buy? 8 12-28-2021 08:33 PM
PRS-T1 Price Reduction at Sony Store to $129 advocate2 Sony Reader 60 12-06-2011 09:45 AM
Kobo Store Price Increases wildstar Kobo Reader 17 12-14-2010 04:08 AM
Ebook price comparisons spinoza News 47 09-13-2009 01:33 PM
Sony eBook Store Price Drop? scarter News 9 08-23-2009 10:18 PM


All times are GMT -4. The time now is 05:52 PM.


MobileRead.com is a privately owned, operated and funded community.