Check url presence in source code ?

ZennoFan

Client
Регистрация
31.01.2016
Сообщения
21
Благодарностей
1
Баллы
3
Hello all,

I wish i could check for a link to a url list. Do you know how to check for a field in a tag <a> directly in the source code?

So I managed to visit a URL and make its source code in a variable, but I do not know how to check the presence of a url and and put current URL in a list if the link is found in the source code.

here is where I am :


to be clearer because you give your valuable time :
1) How to check text (=my url) in variable ?
2) How to "say" : If text is here, put URL in list ?


Thx a lot !
 
Последнее редактирование:

qzen4i

Client
Регистрация
01.05.2014
Сообщения
1 404
Благодарностей
313
Баллы
83
If i understand you right, you may do regex, for tag <a> get all links there, then delete all links what don`t include your link, can you write more correct, because, i am not sure that i understood you right.
 

ZennoFan

Client
Регистрация
31.01.2016
Сообщения
21
Благодарностей
1
Баллы
3
Hello qzen4i,
Sorry for my english :s

In First,I have a variable containing source code. I want to look if that source code has a particular link.


EDIT :
So I managed to gather all the links on a page in a list. I would now like to find a particular link in this list to verify its presence , an idea ?


Thx ;-)
 
Последнее редактирование:

qzen4i

Client
Регистрация
01.05.2014
Сообщения
1 404
Благодарностей
313
Баллы
83
operation with list, delete line that not includes your URL, then you may check it by logic if, if the list is empty, then there is no such link like yours. hope you understand what i mean.
 

qzen4i

Client
Регистрация
01.05.2014
Сообщения
1 404
Благодарностей
313
Баллы
83

qzen4i

Client
Регистрация
01.05.2014
Сообщения
1 404
Благодарностей
313
Баллы
83
Here an example.
 

Вложения

ZennoFan

Client
Регистрация
31.01.2016
Сообщения
21
Благодарностей
1
Баллы
3
Thx for help me ! (love community spirit)

Let me break please :
1) operation with list : Sorry, I don't understand. Is-it an item in advanced editor ?

2) delete line that not includes your URL : I guess I'll understand when I got the answer 1)

3) then you may check it by logic if : Ok, item "If" with this rule : "list = empty" :
>> RED (list no empty, so) > How to copy the url on which were copied all links ?

Thx thx a lot ;-)
 

qzen4i

Client
Регистрация
01.05.2014
Сообщения
1 404
Благодарностей
313
Баллы
83

ZennoFan

Client
Регистрация
31.01.2016
Сообщения
21
Благодарностей
1
Баллы
3
Hello,

PERFECT !
Thx ;-)
;-)
 
Последнее редактирование:

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