View Single Post
Old 01-31-2023, 05:10 PM   #1598
thiago.eec
Wizard
thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.thiago.eec ought to be getting tired of karma fortunes by now.
 
Posts: 1,249
Karma: 1419583
Join Date: Dec 2016
Location: Goiânia - Brazil
Device: iPad, Kindle Paperwhite, Kindle Oasis
Quote:
Originally Posted by davcr View Post
This plugin still fetches page counts from Goodreads? I have been getting some errors in the log for months and the count page column remains blank.
I get something like this:
Code:
Count Page/Word Statistics
do_count_statistics - book_path=None, pages_algorithm=2, page_count_mode=Download, statistics_to_run=['PageCount'], custom_chars_per_page=2000, icu_wordcount=True
do_count_statistics - job started for file book_path=None
-------------------------------
Logfile for book ID 20 (Lao Tse. Tao Te Ching - Lao Tzu & Vladimir Antonov)
	Method of counting _page_count_mode=Download _download_sources=[('goodreads', '21828782')]
	results= {'PageCount': None}
	FAILED TO GET PAGE COUNT FROM WEBSITE
20
do_statistics_for_book:  None 2 Download [('goodreads', '21828782')] ['PageCount'] 2000 True
DownloadPagesWorker::run - source_id=21828782, source_name=goodreads
DownloadPagesWorker::run - PAGE_DOWNLOADS[source_name]={'URL': 'http://www.goodreads.com/book/show/%s', 'pages_xpath': '//div[@id="details"]/div[@class="row"]/span[@itemprop="numberOfPages"]/text()', 'name': 'Goodreads', 'id': 'goodreads', 'icon': 'images/goodreads.png', 'active': True}
DownloadPagesWorker::run - self.pages_regex=None
Download source book url: 'http://www.goodreads.com/book/show/21828782'
_parse_page_count: start
_parse_page_count: root.__class__= HtmlElement
_parse_page_count: pages_xpath='//div[@id="details"]/div[@class="row"]/span[@itemprop="numberOfPages"]/text()', =pages_regex='None'
_parse_page_count: pages= []
_parse_page_count: end
I just checked here and noted that Goodreads changed their website, so the XPath doesn't work anymore. I'm sure it will be corrected soon by the developer.
thiago.eec is offline   Reply With Quote