fix webpage
This commit is contained in:
parent
d18f4e1579
commit
ba42d56be1
@ -108,12 +108,14 @@ class WPExport:
|
|||||||
pagingfirstline = class_div[0].find_all("a")
|
pagingfirstline = class_div[0].find_all("a")
|
||||||
if len(pagingfirstline) > 1:
|
if len(pagingfirstline) > 1:
|
||||||
lastpage = pagingfirstline[len(pagingfirstline)-1].get("href", "/")
|
lastpage = pagingfirstline[len(pagingfirstline)-1].get("href", "/")
|
||||||
|
self._logger.debug("{0} : Last page {1}".format(self._name, lastpage))
|
||||||
|
|
||||||
element_lastpage = lastpage.split("/")[len(lastpage.split("/"))-1]
|
element_lastpage = lastpage.split("/")[len(lastpage.split("/"))-1]
|
||||||
number_page = element_lastpage.split("-")[0].split("p")[1]
|
number_page = element_lastpage.split("-")[0].split("p")[1]
|
||||||
number_lastpage = int(number_page) / 10
|
number_lastpage = int(number_page) / 10
|
||||||
|
|
||||||
setPageDivided = int(number_lastpage) / max_thread
|
setPageDivided = int(number_lastpage) / max_thread
|
||||||
setPagePart = setPageDivided * (index_thread + 1)
|
setPagePart = setPageDivided * (index_thread + 1) + 1
|
||||||
firstPagePart = (setPagePart - setPageDivided)
|
firstPagePart = (setPagePart - setPageDivided)
|
||||||
|
|
||||||
self._logger.debug("{0} : Total page : {1}".format(self._name,int(number_lastpage)))
|
self._logger.debug("{0} : Total page : {1}".format(self._name,int(number_lastpage)))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user