Xpath working on browser not in zennoposter

cherubin

Client
Регистрация
06.06.2016
Сообщения
92
Благодарностей
6
Баллы
8
Hi,

I want to use the following xpath to scrap content in web page however it doesn't work in Zenno.

Код:
//text()[not(ancestor::select)][not(ancestor::script)][not(ancestor::style)][not(ancestor::noscript)][not(ancestor::form)][string-length(.) > 10]
Do you know why ?
 

orka13

Client
Регистрация
07.05.2015
Сообщения
2 165
Благодарностей
2 167
Баллы
113
Maybe because even simple //text() works only in Zenno-Chrome
 

cherubin

Client
Регистрация
06.06.2016
Сообщения
92
Благодарностей
6
Баллы
8
So maybe a warning when using xpath expression without chrome could be good option. I'll test
 

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 233
Благодарностей
5 846
Баллы
113

cherubin

Client
Регистрация
06.06.2016
Сообщения
92
Благодарностей
6
Баллы
8
Your links are for C# only, no ? But now you have the parse data option by css selector or xpath, that's what i want to use.
 

VladZen

Administrator
Команда форума
Регистрация
05.11.2014
Сообщения
22 233
Благодарностей
5 846
Баллы
113

cherubin

Client
Регистрация
06.06.2016
Сообщения
92
Благодарностей
6
Баллы
8
I planned to update this evening to 7 but finally i'm doing it now, following the last amazing update we received !
But you already have the parse data option in 5.33.

This xpath expression is built to scrap content of webpage without piece of script/code etc. Not perfect but closed to, like your article recognition module. However i had an issue with it, it gets script content of an iframe that's why i try to find a xpath alternative.
 

Кто просматривает тему: (Всего: 1, Пользователи: 0, Гости: 1)