AutoPagerize

By swdyh Last update Aug 31, 2012 — Installed 1,080,268 times.

nasza-klasa.pl or nk.pl, inbox (skrzynka odbiorcza) support please

in
Subscribe to nasza-klasa.pl or nk.pl, inbox (skrzynka odbiorcza) support please 2 posts, 1 voice



xadi Scriptwright
FirefoxWindows

Hello,

I suggest you add http://nasza-klasa.pl/poczta/inbox support.
Links that should be read are in http://nasza-klasa.pl/poczta/inbox?page={PAGENUM},
This page is not using ajax, so there is need of cutting off not needed parts.

Fire bug says that XPath for messages is
/html/body/div[2]/div/div[3]/div[2]/div/div[2]/div/form/div[3]/ul
all children except 1st should be added to this element.

I hope I gave you some informations.
I will try to figure it out by myself.

 
xadi Scriptwright
FirefoxWindows

I figured out that it would be great, if every downloaded page messages ul element would be added before this part of code.


•XPath:
so i guess, there must be something like this in configuration
"insertBefore": "id(\"mail_buttons\")",

•PageElement is firstChild of XPath: //*[@id="mails_wrapper"]
it is "/html/body/div[2]/div/div[3]/div[2]/div/div[2]/div/form/div[3]/ul".
How do I write it in your script?

•there are few ways to describe nextLink,
it may be http://nasza-klasa.pl/poczta/inbox?page=last()
it may be Pseudo code
loadedPageContent.find(
"div class=\"paginator graphic_paginator\"" >> first element's >> first child element
)
I hope you get it. ;d

I do not how to fill all other fields.

to sum up this is what i have now:
[
{
"name": "xadi nk.pl inbox /html/body/div[2]/div/div[3]/div[2]/div/div[2]/div/form/div[3]/ul scheme",
"database_resource_url": "http:\/\/wedata.net\/databases\/AutoPagerize",
"updated_at": "2010-02-26T00:00:05+01:00",
"created_by": "xadi",
"resource_url": "http:\/\/wedata.net\/items\/500000",
"data": {
"insertBefore": "",
"pageElement": "/html/body/div[2]/div/div[3]/div[2]/div/div[2]/div/form/div[3]/ul",
"url": "^http:\/\/nasza-klasa.pl",
"nextLink": "/html/body/div[2]/div/div[3]/div[2]/div/div[2]/div/form/div[3]/div[2*last()]/div[2]/a",
"exampleUrl": "http:\/\/nasza-klasa.pl"
},
"created_at": "2010-02-26T00:00:05+01:00"
}
]
I know it looks... like i did not notice that there is not
"/html" in the beginning of any definitions, but i just do not know how to describe it in your DOM finding elements method. BTW. how is it called? :d

Yours Xadi