Velvet-Bird 15.06.2012 07:30 pidgin

>>> import lxml.html
>>> data = lxml.html.parse(" http://velvet-bird.psto.net/").getroot()
>>> subs = set(data.xpath("//div[@id='user-subs']//a[@class='name']//text()"))
>>> readers = set(data.xpath("//div[@id='user-readers']//a[@class='name']//text()"))
>>> subs — readers
set(['wicked_al1ce', 'divide_by_zero', 'nstm0', 'wut', 'Rondo', 'Sappho_Addams', 'xujnya', 'clayrat', 'ojab', '0verMind', 'QIP_Infium'])
>>> readers — subs
set(['mjavzer', 'stacheldraht', '3axap', 'ungaminga', '3vd3v', 'Apepe', 'nyamochka', 'ShTiRLiC', 'rman', 'hanyuupoke'])
>>> subs & readers
set(['Mako', 'kobzonia', 'ignotus', 'Malerin', 'nekoexmachina', 'Thorus', 'cirno', 'Shimizu_Megumi', 'lain_iwakura', 'yuuki_kino', 'xotetb', 'svtk', 'slowpyos', 'monorail', 'Desu1488', 'VidaDI', 'Schiza', 'Xenomorph', 'kurkuma', 'Dulo_T-34', 'lHooFool', 'fermion', 'richmond', 'maru', '3axap1488', 'PeaceDuck', 'Marisa', 'violetta', 'MadAlice', 'hongweibing', 'Ky6uk', 'xujgavno', 'Incred', 'onotoleonide', 'Magic_Spells', 'anoos', 'ilovelesliefeist', 'yamadafag', 'SHIZA007', 'shipitko', 'zetsubou', 'Psykukumber', 'maximko', 'sayafag', 'anonkz', 'jopp'])

лол

Do you really want to delete ?