|
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
|