[00:03:03] ink08 is now away
[00:03:18] xa4a is now away
[00:07:14] lollo is now away
[00:08:06] ink08 is now away
[00:09:42] lollo is now online
[00:10:55] lollo is now offline
[00:12:56] gigimon is now away
[00:12:57] gigimon is now away
[00:15:21] gigimon is now away
[00:15:22] gigimon is now online
[00:18:13] ink08 is now away
[00:23:17] ink08 is now away
[00:24:09] ink08 is now offline
[00:28:21] ink08 is now away
[00:29:36] Typhon is now offline
[00:29:48] livevil is now online
[00:33:23] ink08 is now away
[00:36:41] xa4a is now away
[00:36:41] xa4a is now online
[00:37:48] slav0nic is now online
[00:38:26] ink08 is now away
[00:41:16] Tony is now away
[00:43:29] ink08 is now away
[00:45:06] slav0nic is now away
[00:48:33] ink08 is now away
[00:50:17] livevil is now offline
[00:51:06] slav0nic is now online
[00:53:35] ink08 is now away
[00:58:39] ink08 is now away
[00:59:08] deisler is now offline
[01:01:21] livevil is now online
[01:02:52] slav0nic is now offline
[01:02:57] slav0nic is now online
[01:03:42] ink08 is now away
[01:06:16] Tony is now xa
[01:06:31] xa4a: slav0nic: ты учил английский по видеокурсам чувака какого-то на ютубе?
[01:08:22] slav0nic: эм) шо не так?
[01:08:25] slav0nic: смотрел)
[01:08:31] slav0nic: и забил
[01:08:45] ink08 is now away
[01:09:45] xa4a: есть положительный эффект?
[01:10:25] slav0nic: я не досмотрел но отзывы неплохие, там база
[01:10:27] slav0nic: ссылку дать?
[01:10:36] slav0nic: пипл вроде доволен
[01:11:12] slav0nic: https://www.youtube.com/user/poliglot2013
[01:11:33] slav0nic: дочка позавчера родилась В)
[01:11:45] xa4a: ок, спасибо. попробую на ком-то проверить
[01:12:01] xa4a: slav0nic: оп-па.. бывает
[01:12:08] xa4a: принимай поздравления)
[01:13:48] ink08 is now away
[01:14:26] slav0nic: пасиб
[01:16:03] Guran is now Доступен
[01:16:44] Guran is now offline
[01:17:23] livevil is now offline
[01:18:51] ink08 is now away
[01:23:54] ink08 is now away
[01:24:24] mishok13 is now online
[01:28:58] ink08 is now away
[01:30:39] Сволота is now away
[01:30:57] mishok13 is now away
[01:32:49] livevil is now online
[01:33:59] ink08 is now away
[01:39:03] ink08 is now away
[01:40:38] Сволота is now xa
[01:40:57] mishok13 is now xa
[01:41:32] Сволота is now online
[01:44:06] ink08 is now away
[01:49:09] ink08 is now away
[01:49:44] slav0nic is now away
[01:51:42] livevil is now offline
[01:54:12] ink08 is now away
[01:58:40] slav0nic is now online
[01:59:15] ink08 is now away
[02:03:43] slav0nic is now away
[02:04:18] ink08 is now away
[02:05:51] livevil is now online
[02:06:06] slav0nic is now online
[02:06:26] livevil is now online
[02:09:22] ink08 is now away
[02:14:25] ink08 is now away
[02:18:02] gigimon is now offline
[02:19:28] ink08 is now away
[02:24:31] ink08 is now away
[02:25:45] livevil is now offline
[02:28:01] slav0nic is now offline
[02:29:34] ink08 is now away
[02:34:39] ink08 is now away
[02:38:32] deisler is now away
[02:39:40] ink08 is now away
[02:39:54] Сволота is now away
[02:41:30] Сволота is now online
[02:44:44] ink08 is now away
[02:49:47] ink08 is now away
[02:54:50] ink08 is now away
[02:57:20] Сволота is now away
[02:59:52] ink08 is now away
[03:04:56] ink08 is now away
[03:05:28] Сволота is now online
[03:09:26] livevil is now online
[03:09:59] ink08 is now away
[03:10:50] Сволота is now away
[03:15:02] ink08 is now away
[03:17:18] Сволота is now online
[03:18:51] deisler is now offline
[03:20:04] ink08 is now away
[03:25:10] ink08 is now away
[03:28:59] livevil is now offline
[03:30:10] ink08 is now away
[03:34:04] xa4a is now online
[03:35:09] Сволота is now away
[03:35:14] ink08 is now away
[03:35:30] Сволота is now online
[03:39:28] xa4a is now away
[03:40:16] ink08 is now away
[03:40:30] Сволота is now away
[03:43:06] livevil is now online
[03:45:19] ink08 is now away
[03:50:22] ink08 is now away
[03:50:30] Сволота is now xa
[03:55:24] ink08 is now away
[03:59:37] livevil is now offline
[04:00:26] ink08 is now away
[04:05:29] ink08 is now away
[04:10:32] ink08 is now away
[04:14:28] livevil is now online
[04:15:14] Сволота is now online
[04:15:34] ink08 is now away
[04:20:15] Сволота is now away
[04:20:37] ink08 is now away
[04:25:40] ink08 is now away
[04:30:15] Сволота is now xa
[04:30:41] ink08 is now away
[04:33:30] livevil is now offline
[04:35:45] ink08 is now away
[04:40:46] ink08 is now away
[04:45:28] Сволота is now online
[04:45:47] ink08 is now away
[04:47:29] livevil is now online
[04:50:30] Сволота is now away
[04:50:50] ink08 is now away
[04:52:56] Сволота is now online
[04:55:52] ink08 is now away
[05:00:55] ink08 is now away
[05:02:50] Сволота is now away
[05:03:02] Сволота is now online
[05:05:58] ink08 is now away
[05:06:58] livevil is now offline
[05:10:59] ink08 is now away
[05:16:02] ink08 is now away
[05:20:20] livevil is now online
[05:21:05] ink08 is now away
[05:23:44] Сволота is now away
[05:26:07] ink08 is now away
[05:26:22] Сволота is now online
[05:31:09] ink08 is now away
[05:31:22] Сволота is now away
[05:36:07] gf is now offline
[05:36:11] ink08 is now away
[05:36:48] Сволота is now online
[05:37:16] livevil is now offline
[05:41:14] ink08 is now away
[05:46:15] ink08 is now away
[05:51:17] ink08 is now away
[05:51:44] livevil is now online
[05:56:20] ink08 is now away
[06:01:22] ink08 is now away
[06:06:24] ink08 is now away
[06:08:29] livevil is now offline
[06:09:02] Сволота is now away
[06:09:10] dicos is now online
[06:11:26] ink08 is now away
[06:16:08] Сволота is now online
[06:16:21] gf is now online
[06:16:28] ink08 is now away
[06:21:30] ink08 is now away
[06:23:01] livevil is now online
[06:26:32] ink08 is now away
[06:31:34] ink08 is now away
[06:36:36] ink08 is now away
[06:40:12] livevil is now offline
[06:41:38] ink08 is now away
[06:46:40] ink08 is now away
[06:51:42] ink08 is now away
[06:54:36] livevil is now online
[06:56:43] ink08 is now away
[07:01:45] ink08 is now away
[07:06:49] ink08 is now away
[07:07:08] огыешсук is now online
[07:08:09] gf is now offline
[07:10:47] livevil is now offline
[07:12:05] gf is now online
[07:12:44] ink08 is now away
[07:20:15] ink08 is now away
[07:20:15] ink08 is now away
[07:22:07] ink08 is now away
[07:25:07] livevil is now online
[07:27:09] ink08 is now away
[07:32:11] ink08 is now away
[07:36:44] dicos is now away
[07:36:45] dicos is now away
[07:37:13] ink08 is now away
[07:37:47] dicos is now away
[07:37:48] dicos is now online
[07:41:47] livevil is now offline
[07:42:15] ink08 is now away
[07:47:17] ink08 is now away
[07:52:18] ink08 is now away
[07:57:20] ink08 is now away
[08:00:19] Tony is now online
[08:01:20] lollo is now online
[08:02:22] ink08 is now away
[08:07:24] ink08 is now away
[08:12:26] ink08 is now away
[08:17:29] ink08 is now away
[08:22:31] ink08 is now away
[08:23:28] livevil is now online
[08:27:34] ink08 is now away
[08:32:21] xa4a is now away
[08:32:36] ink08 is now away
[08:33:12] огыешсук is now offline
[08:33:29] огыешсук is now online
[08:34:30] огыешсук is now away
[08:36:17] огыешсук is now online
[08:37:38] ink08 is now away
[08:41:31] livevil is now offline
[08:42:40] ink08 is now away
[08:45:49] xa4a is now away
[08:45:53] xa4a is now online
[08:47:43] ink08 is now away
[08:52:45] ink08 is now away
[08:53:23] pytwo is now offline
[08:53:45] pytwo is now online
[08:56:24] xa4a is now online
[08:57:47] ink08 is now away
[08:59:39] pytwo is now offline
[08:59:40] xa4a is now online
[09:00:08] pytwo is now online
[09:02:49] ink08 is now away
[09:07:51] ink08 is now away
[09:12:53] ink08 is now away
[09:14:25] dicos is now away
[09:14:27] dicos is now away
[09:17:55] ink08 is now away
[09:22:57] ink08 is now away
[09:22:59] lollo is now away
[09:23:46] VeeSot is now online
[09:24:14] VeeSot: Добрый день.
[09:27:59] ink08 is now away
[09:29:51] VeeSot: Подскажите пожалуйста где ошибка?
http://dumpz.org/491943/
Код не мой-взят с сайта http://pi-code.blogspot.ru/2008/12/2.html в попытке освоить питон и написать краулер(в рабочих целях).
Код ошибки
~/devel/crawler$ python crawler.py google.ru
Traceback (most recent call last):
File "crawler.py", line 116, in <module>
ua = UserAgent()
NameError: name 'UserAgent' is not defined
Но смотрю в код и вроде бы есть объявление юзер агента в 69 строке

[09:31:06] Сволота is now away
[09:32:23] огыешсук is now away
[09:33:01] ink08 is now away
[09:33:56] bliznezz is now away
[09:33:56] bliznezz is now online
[09:34:50] Сволота is now online
[09:34:54] lollo is now online
[09:35:43] огыешсук is now online
[09:38:03] ink08 is now away
[09:40:12] Сволота is now away
[09:40:38] Сволота is now online
[09:43:05] ink08 is now away
[09:45:38] Сволота is now away
[09:47:39] pytwo is now offline
[09:48:06] ink08 is now away
[09:49:52] Сволота is now online
[09:50:39] pytwo is now online
[09:51:25] xa4a: VeeSot: у тебя отступы не правильно расставлены
[09:51:34] xa4a: перед class UserAgent(object): kbiybq ghj,tk
[09:51:38] xa4a: лишний пробел похоже
[09:51:50] xa4a: поэтому он объявляется в другой области видимости
[09:53:09] ink08 is now away
[09:56:05] VeeSot: угу.так и есть.Спасибо.
[09:58:04] mishok13 is now online
[09:58:10] ink08 is now away
[10:01:00] xa4a is now offline
[10:03:12] ink08 is now away
[10:07:38] VeeSot is now away
[10:08:14] ink08 is now away
[10:10:39] ink08 is now away
[10:10:40] ink08 is now online
[10:10:40] ink08 is now online
[10:11:06] gf is now offline
[10:11:40] mishok13 is now away
[10:13:16] ink08 is now online
[10:14:00] mishok13 is now online
[10:17:38] VeeSot is now xa
[10:17:42] VeeSot is now online
[10:18:18] ink08 is now online
[10:19:10] mishok13 is now away
[10:23:20] ink08 is now online
[10:26:00] mishok13 is now online
[10:28:22] ink08 is now online
[10:29:12] gf is now online
[10:33:24] ink08 is now online
[10:34:00] mishok13 is now away
[10:36:01] pytwo is now offline
[10:38:25] ink08 is now online
[10:38:39] огыешсук is now offline
[10:38:45] огыешсук is now online
[10:39:04] mishok13 is now online
[10:39:28] deisler is now away
[10:40:00] mishok13 is now offline
[10:40:08] lollo is now away
[10:43:12] lollo is now online
[10:43:27] ink08 is now online
[10:43:38] gf is now offline
[10:46:57] Typhon is now online
[10:48:53] ink08 is now online
[10:49:22] gf is now online
[10:50:37] blw0rm is now online
[10:53:32] dicos is now away
[10:53:33] dicos is now online
[10:56:03] ink08 is now online
[10:56:03] ink08 is now online
[11:00:27] ink08 is now online
[11:03:00] Typhon is now offline
[11:05:30] ink08 is now online
[11:06:45] mishok13 is now online
[11:10:28] ink08 is now online
[11:15:32] ink08 is now online
[11:15:50] blw0rm is now away
[11:19:46] blw0rm is now online
[11:20:35] ink08 is now online
[11:22:34] nott is now online
[11:25:38] ink08 is now online
[11:26:10] blw0rm is now away
[11:26:27] огыешсук is now away
[11:26:50] blw0rm is now online
[11:30:40] ink08 is now online
[11:32:04] blw0rm is now offline
[11:32:08] blw0rm is now online
[11:32:08] blw0rm is now online
[11:35:44] ink08 is now online
[11:40:42] nott is now away
[11:40:46] ink08 is now online
[11:44:01] blw0rm is now offline
[11:44:03] blw0rm is now online
[11:44:05] Tony is now offline
[11:44:11] Tony is now online
[11:44:18] огыешсук is now offline
[11:45:48] ink08 is now online
[11:46:22] slav0nic is now xa
[11:48:16] dicos is now away
[11:48:18] dicos is now away
[11:50:51] ink08 is now online
[11:53:23] dicos is now away
[11:53:24] dicos is now online
[11:55:54] ink08 is now online
[11:58:40] lollo is now away
[11:58:57] gigimon is now online
[12:00:57] ink08 is now online
[12:01:46] VeeSot is now away
[12:06:00] ink08 is now online
[12:06:02] VeeSot is now online
[12:11:03] ink08 is now online
[12:13:40] lollo is now xa
[12:14:17] tvorzasp is now сколько RoR на PHP не портируй, все равно Codeigniter получается
[12:16:05] ink08 is now online
[12:16:28] огыешсук is now online
[12:18:03] Сволота is now away
[12:18:08] Сволота is now online
[12:20:40] RanWise is now online
[12:21:07] ink08 is now online
[12:21:19] огыешсук is now offline
[12:24:22] dicos is now away
[12:24:24] dicos is now away
[12:25:02] dicos is now away
[12:25:03] dicos is now online
[12:26:09] ink08 is now online
[12:31:15] ink08 is now online
[12:33:34] aries.ua is now online
[12:33:34] aries.ua is now online
[12:35:42] nott is now xa
[12:36:14] ink08 is now online
[12:37:02] aries.ua is now online
[12:37:07] ink08 is now away
[12:37:07] ink08 is now away
[12:37:07] ink08 is now away
[12:37:53] огыешсук is now online
[12:40:22] mishok13 is now away
[12:41:16] ink08 is now away
[12:41:42] mishok13 is now online
[12:42:05] aries.ua is now online
[12:44:37] ink08 is now away
[12:44:38] ink08 is now online
[12:44:38] ink08 is now online
[12:46:19] ink08 is now online
[12:47:07] aries.ua is now online
[12:51:20] ink08 is now online
[12:51:45] gf is now online
[12:52:22] aries.ua is now online
[12:53:00] blw0rm is now away
[12:55:04] lollo is now online
[12:56:23] ink08 is now online
[12:57:25] aries.ua is now online
[13:00:34] огыешсук is now offline
[13:01:25] ink08 is now online
[13:02:27] aries.ua is now online
[13:02:33] огыешсук is now online
[13:02:57] огыешсук is now offline
[13:03:08] dicos is now away
[13:03:10] dicos is now away
[13:05:27] nott is now online
[13:06:12] огыешсук is now online
[13:06:27] ink08 is now online
[13:07:29] aries.ua is now online
[13:07:59] blw0rm is now xa
[13:09:14] tvorzasp is now away
[13:09:14] tvorzasp is now away
[13:09:30] Tony is now away
[13:11:29] ink08 is now online
[13:12:31] aries.ua is now online
[13:12:38] mishok13 is now away
[13:13:43] blw0rm is now online
[13:14:42] mishok13 is now online
[13:16:02] VeeSot is now away
[13:16:31] ink08 is now online
[13:17:32] aries.ua is now online
[13:19:50] ink08 is now away
[13:19:50] ink08 is now away
[13:19:50] ink08 is now away
[13:21:33] ink08 is now away
[13:22:35] aries.ua is now online
[13:22:56] dicos is now away
[13:22:58] dicos is now online
[13:24:29] Guran is now Доступен
[13:26:02] VeeSot is now xa
[13:26:35] ink08 is now away
[13:27:36] aries.ua is now online
[13:31:38] ink08 is now away
[13:31:40] gigimon is now online
[13:31:40] gigimon is now away
[13:32:37] aries.ua is now online
[13:34:30] Tony is now xa
[13:34:34] aries.ua is now away
[13:34:34] aries.ua is now away
[13:34:34] aries.ua is now away
[13:36:16] MAVr is now — Уважаемые пассажиры! Убедительно просим вас не аплодировать экипажу до полной остановки самолета. Спасибо!
[13:36:22] py_two is now Automatically away due to idle
[13:36:40] ink08 is now away
[13:37:40] aries.ua is now away
[13:39:23] ink08 is now away
[13:39:23] ink08 is now online
[13:39:23] ink08 is now online
[13:39:39] огыешсук is now offline
[13:40:31] dicos is now offline
[13:41:42] ink08 is now online
[13:42:41] aries.ua is now away
[13:46:44] ink08 is now online
[13:47:12] огыешсук is now online
[13:47:26] VeeSot is now online
[13:47:42] aries.ua is now away
[13:48:09] py_two is now away
[13:48:28] ink08 is now away
[13:48:28] ink08 is now away
[13:51:47] ink08 is now away
[13:52:45] aries.ua is now away
[13:53:23] tvorzasp is now away
[13:53:23] tvorzasp is now сколько RoR на PHP не портируй, все равно Codeigniter получается
[13:53:58] gigimon is now away
[13:56:50] ink08 is now away
[13:57:46] aries.ua is now away
[13:58:08] py_two is now xa
[13:59:22] огыешсук is now online
[14:01:52] ink08 is now away
[14:02:48] aries.ua is now away
[14:06:55] ink08 is now away
[14:06:57] RanWise is now dnd
[14:07:28] mishok13 is now away
[14:07:36] mishok13 is now online
[14:07:50] aries.ua is now away
[14:08:42] RanWise is now online
[14:11:54] blw0rm is now offline
[14:11:55] blw0rm is now online
[14:11:57] ink08 is now away
[14:11:58] blw0rm is now online
[14:12:52] aries.ua is now away
[14:13:14] mishok13 is now away
[14:15:56] aries.ua is now online
[14:15:56] aries.ua is now online
[14:16:35] lollo is now away
[14:17:00] ink08 is now away
[14:17:53] aries.ua is now online
[14:20:55] lollo is now online
[14:22:01] ink08 is now away
[14:22:55] aries.ua is now online
[14:23:14] mishok13 is now xa
[14:24:51] RanWise is now away
[14:27:04] ink08 is now away
[14:27:57] aries.ua is now online
[14:29:13] nott is now away
[14:31:22] MAVr is now offline
[14:32:00] MAVr is now — Уважаемые пассажиры! Убедительно просим вас не аплодировать экипажу до полной остановки самолета. Спасибо!
[14:32:06] ink08 is now away
[14:32:59] aries.ua is now online
[14:33:50] gigimon is now away
[14:33:52] gigimon is now online
[14:35:38] tvorzasp is now away
[14:35:39] tvorzasp is now away
[14:36:48] mishok13 is now online
[14:37:08] ink08 is now away
[14:38:00] aries.ua is now online
[14:38:20] tvorzasp is now сколько RoR на PHP не портируй, все равно Codeigniter получается
[14:40:21] blw0rm is now offline
[14:40:24] blw0rm is now online
[14:40:38] aries.ua is now offline
[14:42:11] ink08 is now away
[14:43:52] aries.ua is now online
[14:44:51] RanWise is now xa
[14:45:30] aries.ua is now online
[14:47:13] ink08 is now away
[14:50:34] aries.ua is now online
[14:52:10] огыешсук is now offline
[14:52:12] огыешсук is now online
[14:52:15] ink08 is now away
[14:52:25] ink08 is now away
[14:52:26] ink08 is now online
[14:52:26] ink08 is now online
[14:53:38] огыешсук is now offline
[14:55:35] aries.ua is now online
[14:55:47] огыешсук is now online
[14:56:59] огыешсук is now offline
[14:57:14] VeeSot is now offline
[14:57:18] ink08 is now online
[15:00:31] огыешсук is now online
[15:00:36] aries.ua is now online
[15:01:08] огыешсук is now offline
[15:01:16] Tony is now online
[15:02:20] ink08 is now online
[15:03:36] Сволота is now away
[15:03:52] RanWise is now online
[15:03:54] Сволота is now online
[15:05:38] aries.ua is now online
[15:07:22] ink08 is now online
[15:10:40] aries.ua is now online
[15:12:25] ink08 is now online
[15:14:05] RanWise is now away
[15:14:48] aries.ua is now away
[15:14:48] aries.ua is now away
[15:14:48] aries.ua is now away
[15:15:42] aries.ua is now away
[15:17:27] ink08 is now online
[15:20:45] aries.ua is now away
[15:22:29] ink08 is now online
[15:25:46] aries.ua is now away
[15:27:31] ink08 is now online
[15:28:36] огыешсук is now online
[15:30:48] aries.ua is now away
[15:32:34] ink08 is now online
[15:34:05] RanWise is now xa
[15:35:49] aries.ua is now away
[15:36:26] bliznezz is now away
[15:36:26] bliznezz is now away
[15:36:27] lollo is now offline
[15:37:36] ink08 is now online
[15:38:55] RanWise is now online
[15:40:48] gigimon is now online
[15:40:48] gigimon is now away
[15:40:50] aries.ua is now away
[15:42:37] ink08 is now online
[15:42:40] RanWise is now dnd
[15:42:44] RanWise is now online
[15:45:35] bliznezz is now away
[15:45:36] bliznezz is now online
[15:45:52] aries.ua is now away
[15:46:59] RanWise is now dnd
[15:47:03] RanWise is now online
[15:47:39] ink08 is now online
[15:48:25] RanWise is now dnd
[15:48:29] RanWise is now online
[15:49:12] py_two is now Automatically away due to idle
[15:49:34] RanWise is now dnd
[15:49:38] RanWise is now online
[15:49:42] огыешсук is now offline
[15:50:14] py_two is now offline
[15:50:26] ink08 is now away
[15:50:27] ink08 is now away
[15:50:27] ink08 is now away
[15:50:34] RanWise is now dnd
[15:50:42] RanWise is now online
[15:50:53] aries.ua is now away
[15:51:01] огыешсук is now online
[15:51:17] ink08 is now away
[15:51:18] ink08 is now online
[15:51:18] ink08 is now online
[15:52:41] ink08 is now online
[15:53:04] RanWise is now dnd
[15:53:09] RanWise is now online
[15:54:34] RanWise is now dnd
[15:54:58] RanWise is now online
[15:55:51] RanWise is now dnd
[15:55:54] aries.ua is now away
[15:55:59] RanWise is now online
[15:56:03] RanWise is now dnd
[15:56:07] RanWise is now online
[15:56:44] RanWise is now dnd
[15:56:52] RanWise is now online
[15:57:04] RanWise is now dnd
[15:57:08] RanWise is now online
[15:57:16] RanWise is now dnd
[15:57:20] RanWise is now online
[15:57:43] ink08 is now online
[15:58:18] Guran is now away
[16:00:56] aries.ua is now away
[16:01:24] Сволота is now away
[16:01:34] Сволота is now online
[16:02:45] ink08 is now online
[16:05:56] aries.ua is now away
[16:07:47] ink08 is now online
[16:08:20] RanWise is now offline
[16:10:59] aries.ua is now away
[16:11:52] aries.ua is now away
[16:11:52] aries.ua is now online
[16:11:52] aries.ua is now online
[16:12:49] ink08 is now online
[16:12:49] Guran is now Доступен
[16:12:56] nott is now online
[16:12:59] gigimon is now away
[16:13:01] gigimon is now online
[16:16:00] aries.ua is now online
[16:17:00] MAVr is now offline
[16:17:22] aries.ua is now offline
[16:17:50] ink08 is now online
[16:20:17] aries.ua is now online
[16:20:17] aries.ua is now online
[16:21:48] aries.ua is now online
[16:22:53] ink08 is now online
[16:24:54] огыешсук is now away
[16:26:51] aries.ua is now online
[16:26:55] blw0rm is now offline
[16:26:59] blw0rm is now online
[16:27:55] ink08 is now online
[16:30:41] aries.ua is now offline
[16:31:11] огыешсук is now online
[16:31:24] RanWise is now online
[16:32:57] ink08 is now online
[16:32:58] blw0rm is now offline
[16:33:00] blw0rm is now online
[16:33:01] blw0rm is now online
[16:34:36] blw0rm is now offline
[16:34:44] blw0rm is now online
[16:38:00] ink08 is now online
[16:39:30] огыешсук is now offline
[16:39:32] огыешсук is now online
[16:41:44] lollo is now online
[16:43:01] ink08 is now online
[16:43:10] nott is now away
[16:45:19] nott is now online
[16:45:58] mishok13 is now away
[16:46:28] mishok13 is now online
[16:48:04] ink08 is now online
[16:49:49] gf is now offline
[16:53:05] ink08 is now online
[16:53:07] plz is now online
[16:53:58] gf is now online
[16:55:59] plz: приветствую.
Подскажите, пожалуйста, название модуля, который способен раскладывать URL по частям. Если не ошибаюсь, он из стандартной библиотеки.
[16:56:57] Guran: М-м-м, ты имеешь в виду lol.ru/ololo/ololo/trollfase.php на составные, или ответ htmlный?
[16:57:14] plz: да, только урл
[16:57:34] Guran: ну, я бы воспользовался обычными регекспами
[16:57:49] plz: я бы тоже мог, но есть же эллегантное решение
[16:58:07] ink08 is now online
[16:59:08] ink08 is now online
[16:59:26] RanWise: str.strip не?
[17:00:09] plz: не, не из это области
[17:00:21] bugi is now online
[17:00:39] plz: в модулях для работы с вебом эта фича была
[17:01:39] ink08 is now online
[17:02:43] bugi: Всем привет.
Прошу вашей помощи вот в каком вопросе, например у пользователя есть данные: a, b, d и есть их нужно сравнить с такими вот условиями:
((a or b) and (c or d)) or e
[17:03:17] bugi: Если в python какие-то структуры которые позволяют выполнить сравнение за 1 операцию?
[17:04:23] bugi: а не за n блоков? В данном случае здесь 4 блока, тоесть нужно будет сделать 4 сравнения
[17:06:16] plz: bugi: а в математике такое вообще возможно?
[17:06:38] bugi: не уверен
[17:06:41] ink08 is now online
[17:07:55] bugi: ну может даже не за 1 операцию, просто может есть какие-то гибкие решения?
Меня ещё интересует как хранить эти условия, пока не могу ничего хорошего придумать. Мне нужно будет выгружать условие в сериализированном виде
[17:11:11] blw0rm is now offline
[17:11:14] blw0rm is now online
[17:11:16] blw0rm is now online
[17:11:43] ink08 is now online
[17:16:45] ink08 is now online
[17:19:04] plz: собственно, нашел решение своей проблемы в книге Python. Подробный справочник 4-е изд.
Решается она при помощи urlparse
пример кода: http://pastebin.com/YEL0AH9U
[17:21:47] ink08 is now online
[17:26:49] ink08 is now online
[17:31:51] ink08 is now online
[17:34:17] joes is now online
[17:34:19] joes is now offline
[17:34:20] joes is now online
[17:34:23] joes is now offline
[17:34:28] joes is now online
[17:34:29] joes is now offline
[17:34:48] bugi is now away
[17:36:07] joes is now online
[17:36:08] joes is now offline
[17:36:08] joes is now online
[17:36:10] joes is now offline
[17:36:10] joes is now online
[17:36:12] joes is now offline
[17:36:53] ink08 is now online
[17:41:55] ink08 is now online
[17:44:12] bugi is now online
[17:46:58] ink08 is now online
[17:51:32] plz is now away
[17:52:00] ink08 is now online
[17:54:30] py_two is now Automatically away due to idle
[17:57:02] ink08 is now online
[17:57:28] plz is now online
[18:02:05] ink08 is now online
[18:05:14] py_two is now offline
[18:06:46] RanWise is now offline
[18:07:10] ink08 is now online
[18:08:41] огыешсук is now away
[18:08:42] огыешсук is now online
[18:12:10] ink08 is now online
[18:12:52] Сволота is now away
[18:13:20] Сволота is now online
[18:14:45] plz is now offline
[18:17:12] ink08 is now online
[18:18:20] Сволота is now away
[18:22:15] ink08 is now online
[18:25:24] Сволота is now online
[18:27:17] ink08 is now online
[18:28:07] nott is now away
[18:32:20] ink08 is now online
[18:33:31] ink08 is now away
[18:33:31] ink08 is now away
[18:33:31] ink08 is now away
[18:36:16] nott is now online
[18:37:23] ink08 is now away
[18:37:46] mishok13 is now away
[18:38:10] ink08 is now away
[18:38:10] ink08 is now online
[18:38:10] ink08 is now online
[18:38:11] bliznezz is now away
[18:38:12] bliznezz is now away
[18:41:02] slav0nic is now offline
[18:41:59] bliznezz is now away
[18:41:59] bliznezz is now online
[18:42:24] ink08 is now online
[18:44:42] mishok13 is now online
[18:47:27] ink08 is now online
[18:47:45] Guran is now offline
[18:52:29] ink08 is now online
[18:57:31] ink08 is now online
[19:02:34] ink08 is now online
[19:07:18] levsha is now online
[19:07:36] ink08 is now online
[19:12:37] ink08 is now away
[19:12:37] ink08 is now away
[19:12:37] ink08 is now away
[19:12:39] ink08 is now away
[19:13:09] ink08 is now away
[19:13:09] ink08 is now online
[19:13:09] ink08 is now online
[19:17:42] ink08 is now online
[19:18:29] levsha is now offline
[19:22:18] огыешсук is now offline
[19:22:44] ink08 is now online
[19:23:16] mishok13 is now offline
[19:23:42] tvorzasp is now offline
[19:27:47] ink08 is now online
[19:32:50] ink08 is now online
[19:34:41] blw0rm is now offline
[19:36:46] gigimon is now offline
[19:37:53] ink08 is now online
[19:40:53] cutwater is now online
[19:42:55] ink08 is now online
[19:47:57] ink08 is now online
[19:51:30] deisler is now offline
[19:52:59] ink08 is now online
[19:58:02] ink08 is now online
[20:02:17] Сволота is now away
[20:02:59] Сволота is now online
[20:03:04] ink08 is now online
[20:03:12] ink08 is now away
[20:03:12] ink08 is now away
[20:03:12] ink08 is now away
[20:08:07] ink08 is now away
[20:13:09] ink08 is now away
[20:18:12] ink08 is now away
[20:21:44] bliznezz is now away
[20:21:45] bliznezz is now away
[20:23:15] ink08 is now away
[20:28:17] ink08 is now away
[20:30:45] bugi is now offline
[20:33:20] ink08 is now away
[20:34:50] RanWise is now ?
[20:35:33] mishok13 is now online
[20:35:58] nott is now away
[20:38:23] ink08 is now away
[20:43:25] ink08 is now away
[20:43:34] nott is now online
[20:45:16] lollo is now away
[20:47:39] mishok13 is now away
[20:47:41] lollo is now online
[20:48:27] ink08 is now away
[20:49:59] mishok13 is now online
[20:50:44] lollo is now offline
[20:50:56] lollo is now online
[20:53:30] ink08 is now away
[20:58:32] ink08 is now away
[21:02:27] mishok13 is now away
[21:03:35] ink08 is now away
[21:04:35] nott is now offline
[21:04:53] mishok13 is now online
[21:08:38] ink08 is now away
[21:09:35] obivan is now online
[21:13:02] Singularity is now 55
[21:13:41] ink08 is now away
[21:13:52] obivan: есть xml такого вида
[21:13:55] obivan: Есть xml, мне нужно получить
<name>TOPIC_NAME</name><value><string>Нужна помощь в выборе микрофона.</string></value></member><member><name>TOPIC_DESCR</name><value><string>:3</string></value></member><member><name>TOPIC_LINK</name>
[21:14:05] obivan: хотелось бы на каждый кусочек xml получать отдельную строку
[21:17:01] obivan: каждый такой кусочек это сообщение на форуме
[21:17:10] obivan: мне нужно получить все сообщения
[21:18:43] ink08 is now away
[21:22:33] mishok13 is now away
[21:23:46] ink08 is now away
[21:24:03] mishok13 is now online
[21:28:48] Singularity is now 55
[21:28:49] ink08 is now away
[21:29:47] Singularity: Куда можнл слить 10 гиг приватных фоток ? типа для бекапа
[21:30:18] RanWise: google drive
[21:30:24] cutwater: на внешний винт
[21:30:27] RanWise: яндекс диск незнаю сколкьо
[21:31:01] cutwater: слушайте... вот не могу ничего с собой поделать... меня воротит от пирамиды, фласка, джанги и хочется чего-нибудь более вменяемого
[21:31:20] cutwater: а надо бы поднять один веб проектик для личных нужд
[21:31:23] cutwater: может быть PHP?
[21:31:24] RanWise: bottle?
[21:31:42] RanWise: напиши на чистом питоне)))
[21:31:49] cutwater: *мат за кадром*
[21:31:55] cutwater: ну ты выдал да
[21:32:53] Singularity: RanWise:там до 5
[21:33:07] RanWise: яндекс?
[21:33:07] cutwater: Singularity: заплати им денег =)
[21:33:08] obivan: как получить на каждый заданый кусочек xml кода отдельную строку?
[21:33:19] obivan: например топики на форуме
[21:33:22] cutwater: что значит на каждый кусочек xml ?
[21:33:38] RanWise: дропбокс акаунт прокачай
[21:33:48] RanWise: долго правда
[21:33:51] ink08 is now away
[21:34:04] obivan: <name>TOPIC_NAME</name><value><string>Нужна помощь в выборе микрофона.</string></value></member><member><name>TOPIC_DESCR</name><value><string>:3</string></value></member><member><name>TOPIC_LINK</name> вот в этом xml-коде есть данные о теме на форуме
[21:34:08] obivan: таких кусков много
[21:34:10] Singularity: cutwater: я даже не знаю как это сделать, наверно надо кредитку
[21:34:22] cutwater: наверно
[21:34:27] cutwater: obivan: используй Силу
[21:34:55] cutwater: lxml тебе в помощь, юный падаван
[21:35:05] obivan: пользуюсь грабом
[21:35:08] RanWise: xpath
[21:35:18] obivan: да да да
[21:35:19] obivan: но
[21:35:36] RanWise: или у топика ксс другой может быть так что cssselect вроде так пишется
[21:35:38] Singularity: а кто здесь кардер ? obivan ?
[21:35:52] obivan: я задаю путь и получаю все данные в одной строке
[21:36:05] RanWise: неправельно задаеш
[21:36:10] obivan: названия топиков автора дату и т.д
[21:36:48] obivan: к примеру
[21:36:50] obivan: http://codhacks.ru/forum/0-0-1-34
[21:36:59] obivan: хотел отсюда топики взять
[21:37:01] RanWise: Singularity: так где там 5 гиг в яндексе или гугле?
[21:37:10] obivan: ucoz
[21:37:11] obivan: сайт
[21:37:32] obivan: но получается либо все в одной строке либо 1 топик
[21:37:47] Singularity: RanWise: в гугле. В яндес диска не написано чколько дают
[21:38:04] RanWise: хм у меня в гугле 10
[21:38:16] obivan: Singularity, что интересует?
[21:38:54] ink08 is now away
[21:39:54] Singularity: ну тебе вроде никто не помогал на этой почве
[21:40:19] obivan: я читал статьи на сайте
[21:40:23] obivan: ради интереса
[21:40:44] obivan: потом понял что к чему
[21:43:56] ink08 is now away
[21:46:42] obivan: Оказывется все можно найти в поисковых системах
[21:46:47] obivan: :-)
[21:46:53] obivan: а не задавать тупые вопросы
[21:48:25] obivan is now offline
[21:48:59] ink08 is now away
[21:49:53] Singularity: obivan: уже повязали?
[21:54:01] ink08 is now away
[21:55:41] Сволота is now away
[21:56:45] Сволота is now online
[21:59:04] ink08 is now away
[21:59:36] Singularity is now 55
[22:00:18] lollo is now away
[22:04:07] ink08 is now away
[22:04:38] Tony is now away
[22:05:50] lollo is now online
[22:09:09] ink08 is now away
[22:13:30] lollo is now away
[22:14:12] ink08 is now away
[22:18:17] xa4a is now online
[22:19:14] ink08 is now away
[22:21:35] xa4a is now offline
[22:22:01] xa4a is now online
[22:23:30] lollo is now xa
[22:24:17] ink08 is now away
[22:26:12] lollo is now online
[22:29:20] ink08 is now away
[22:29:38] Tony is now xa
[22:34:22] ink08 is now away
[22:39:25] ink08 is now away
[22:39:49] Сволота is now away
[22:42:55] Сволота is now online
[22:43:38] Tony is now online
[22:44:27] ink08 is now away
[22:44:56] ds.tihonov is now дома! :)
[22:49:30] ink08 is now away
[22:51:49] Сволота is now away
[22:52:49] mishok13 is now away
[22:53:29] Сволота is now online
[22:54:27] mishok13 is now online
[22:54:32] ink08 is now away
[22:55:58] livevil is now online
[22:57:03] cutwater is now away
[22:59:34] ink08 is now away
[23:00:27] Сволота is now away
[23:01:11] Сволота is now online
[23:02:03] mishok13 is now away
[23:04:37] ink08 is now away
[23:05:00] cutwater is now online
[23:07:55] mishok13 is now online
[23:09:39] ink08 is now away
[23:10:33] xa4a is now offline
[23:14:41] ink08 is now away
[23:19:44] ink08 is now away
[23:23:53] mishok13 is now away
[23:24:46] ink08 is now away
[23:27:08] Tony is now away
[23:29:48] ink08 is now away
[23:31:42] lollo is now away
[23:33:53] mishok13 is now xa
[23:34:52] ink08 is now away
[23:35:10] lollo is now online
[23:35:33] lollo is now offline
[23:36:19] ds.tihonov is now offline
[23:36:47] mishok13 is now online
[23:39:47] xa4a is now online
[23:39:54] ink08 is now away
[23:41:17] xa4a is now offline
[23:44:57] ink08 is now away
[23:45:40] plz is now online
[23:45:54] Singularity is now away
[23:45:54] Singularity is now away
[23:45:57] Singularity is now away
[23:45:57] Singularity is now 55
[23:46:45] mishok13 is now away
[23:49:59] ink08 is now away
[23:50:11] mishok13 is now online
[23:50:40] livevil is now away
[23:50:58] Singularity is now away
[23:50:58] Singularity is now away
[23:51:25] Singularity is now away
[23:51:25] Singularity is now 55
[23:52:08] Tony is now xa
[23:52:49] livevil is now online
[23:55:01] ink08 is now away
[23:56:51] mishok13 is now away
[23:58:40] cutwater is now away
[23:58:46] Singularity is now away
[23:58:46] Singularity is now away