Only save unique values (check to see if its in another list)

amul

Client
Регистрация
02.07.2011
Сообщения
142
Благодарностей
10
Баллы
18
I'm scraping youtube and I'm having a tough time trying to save ONLY unique values.
For example, I'll scrape a channel videos yesterday .. and today there is 3 new videos.. I ONLY want to save the new video urls in a list.

I've tried binding and deduping but that just leaves the original list and the new videos combined. What I need is a filtered list of just the new clips.

I could loop through the list 1 by 1 checking but there has got to be an easy way to handle this

thanks!
Amul
 

Вложения

  • 240,5 КБ Просмотры: 224
  • 234,8 КБ Просмотры: 157

AloneSlamer

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

Обращаем Ваше внимание на то, что данный пользователь заблокирован.
Не рекомендуем проводить с AloneSlamer какие-либо сделки.

You have 2 list in one all the values in the second only the unique values. If there was a new video you need to check the video in the second list if it is not there then video unique.
 

amul

Client
Регистрация
02.07.2011
Сообщения
142
Благодарностей
10
Баллы
18
You have 2 list in one all the values in the second only the unique values. If there was a new video you need to check the video in the second list if it is not there then video unique.
thanks for your response..

SO yeah I could loop through the whole list 2 .. but what if that list is 30,000 lines.. I'm trying to see if there is faster way
 

Aronax

Client
Регистрация
29.01.2015
Сообщения
201
Благодарностей
59
Баллы
28
  • Спасибо
Реакции: amul

amul

Client
Регистрация
02.07.2011
Сообщения
142
Благодарностей
10
Баллы
18

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