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

  • Автор темы Автор темы amul
  • Дата начала Дата начала

amul

Client
Регистрация
02.07.2011
Сообщения
147
Реакции
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
 

Вложения

  • yt.jpg
    yt.jpg
    240,5 KB · Просмотры: 291
  • unique.zip
    unique.zip
    234,8 KB · Просмотры: 223
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
 

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