[00:02:11] mishok13 is now online
[00:12:25] singularity is now offline
[00:20:46] ambush is now offline
[00:22:00] singularity is now online
[00:22:43] slav0nic is now away
[00:23:55] slav0nic is now online
[00:28:57] slav0nic is now away
[00:38:57] slav0nic is now xa
[00:42:19] slav0nic is now online
[00:47:53] s0000p is now online
[00:48:18] s0000p: Всем привет
[00:50:35] singularity: s0000p: аве!
[00:57:52] s0000p: singularity: подскажи плиз. Ситуция такая с помощью requests авторизовался на ресурсе , мне нужно открыть окно браузера определнной страницы . как передать cookes полученными при авторизации в модуль webbrowser <http://docs.python.org/3/library/webbrowser.html?highlight=brow#module-webbrowser> чтобы открыть нужную страницу
[00:58:22] s0000p: если некорректно задал вопрос извиняй)
[00:58:43] singularity: s0000p: никак скорей всего
[00:59:05] s0000p: а как быть?
[00:59:27] s0000p: если страницу открыть надо в браузере
[01:02:09] singularity: не знаю
[01:09:06] yugo-salem is now online
[01:11:31] AlexZenon is now offline
[01:16:40] AlexZenon is now online
[01:18:58] slav0nic is now offline
[01:30:37] AlexZenon is now xa
[01:35:49] singularity is now offline
[01:41:04] yugo-salem is now online
[01:41:59] mishok13 is now away
[01:43:01] yugo-salem is now online
[01:44:45] fuzzy is now away
[01:45:28] fuzzy is now online
[01:51:59] mishok13 is now xa
[01:53:16] s0000p: fuzzy: можешь подсказать как реализовать открытие браузерного окна с интересующей страницей, тоесть при пройденной авторизации
[01:53:39] fuzzy: в простейшем случае пройденная авторизация = правильные куки
[01:53:46] s0000p: ну даъ
[01:53:57] s0000p: как эти куки браузеру передать
[01:54:45] fuzzy: а что говорит документация?
[01:54:48] s0000p: авторизуюсь скриптом получаю куки каких передать браузеру?
[01:55:20] s0000p: в модуле webbrowser ничего про куки не сказано
[01:55:37] mrDoctorWho is now offline
[01:55:47] s0000p: можно только открывать страницы или вкладки
[01:57:05] Tony is now away
[02:05:56] fuzzy: значит никак ¯\_(ツ)_/¯
[02:07:31] mishok13 is now online
[02:08:57] s0000p: я знаю что ты знаешь что я не знаю и не готов мне об этом сказать
[02:09:12] s0000p: :-/
[02:09:17] s0000p: xD
[02:11:57] gigimon is now online
[02:16:03] mishok13 is now away
[02:16:13] mishok13 is now online
[02:20:42] yugo-salem is now online
[02:22:05] Tony is now xa
[02:23:50] fuzzy: а почему ты хочешь открывать именно через webbrowser?
[02:24:06] fuzzy: а может можно твоему броузеру как-то задним числом куки всунуть?
[02:24:12] fuzzy: исследуй же ситуацию
[02:25:17] gigimon is now offline
[02:25:22] gigimon is now online
[02:26:21] yugo-salem is now online
[02:33:14] singularity is now online
[02:38:19] s0000p: да я понял напрвление
[02:38:40] s0000p: надо редактировать файл куки браузера
[02:39:18] s0000p: потом вызывать webbrowser <http://docs.python.org/3/library/webbrowser.html?highlight=brow#module-webbrowser>
[02:39:53] fuzzy is now away
[02:39:54] s0000p: просто надеялся что есть встроенные методы в питоне для этого)
[02:40:25] gigimon is now offline
[02:40:30] s0000p is now offline
[02:40:32] remo is now offline
[02:45:03] yugo-salem is now online
[02:45:15] fuzzy is now away
[02:46:51] Tony is now online
[02:47:57] yugo-salem is now online
[02:52:18] fuzzy is now away
[02:52:31] fuzzy is now online
[02:52:57] fuzzy: встроенные - без webbrowser. с помощью urllib2
[02:53:04] fuzzy: там можно задавать хедеры
[02:53:09] yugo-salem is now online
[02:55:57] yugo-salem is now online
[03:00:18] emese is now offline
[03:01:21] mishok13 is now offline
[03:03:27] singularity is now offline
[03:04:48] singularity is now online
[03:08:14] yugo-salem is now online
[03:13:14] yugo-salem is now online
[03:20:31] Tony is now away
[03:45:31] Tony is now xa
[03:45:46] singularity is now offline
[04:05:49] Tony is now online
[04:30:22] fuzzy is now away
[04:35:48] yugo-salem is now online
[04:35:54] yugo-salem is now online
[04:37:15] singularity is now online
[04:42:09] fuzzy is now away
[05:01:52] yugo-salem is now online
[05:07:13] yugo-salem is now online
[05:12:14] yugo-salem is now online
[05:32:02] dicos is now online
[05:34:08] yugo-salem is now online
[05:39:10] yugo-salem is now online
[05:41:13] yugo-salem is now online
[05:46:19] dicos is now away
[05:46:20] dicos is now away
[05:48:01] dicos is now away
[05:48:02] dicos is now online
[05:48:18] yugo-salem is now online
[05:53:21] yugo-salem is now online
[05:58:03] dicos is now away
[05:58:05] dicos is now away
[06:00:50] yugo-salem is now online
[06:01:12] dicos is now away
[06:01:13] dicos is now online
[06:02:05] dicos is now offline
[06:03:41] dicos is now online
[06:04:10] singularity: dicos: привет
[06:05:08] yugo-salem is now online
[06:06:05] dicos: Привет
[06:07:25] singularity: я только что так делал ожидая получить норм результат re.search( usertitle, r"(\d)")
[06:07:30] singularity: :facepalm:
[06:08:35] singularity: и вообще как правильней
usertitle = block.select('.//dd[@class="usertitle"]/img').attr('src')
usertitle = re.search(r"(\d)", usertitle).group()
или
usertitle = re.search(r"(\d)", block.select('.//dd[@class="usertitle"]/img').attr('src')).group()
[06:08:47] singularity: мне второй вариант больше по душе...
[06:10:10] yugo-salem is now online
[06:16:28] xryun is now online
[06:24:19] xryun is now away
[06:34:19] xryun is now xa
[06:40:47] xryun is now online
[06:43:20] dicos: singularity, можешь сначала объяснить ситуацию?
[06:43:46] singularity: а что объяснять ? просто как читабельней
[06:44:30] dicos: по-моему без разницы
[06:44:35] singularity: окей
[06:45:18] dicos: только когда делаешь длинные цепочки, то нужно быть уверенным, что ни где не окажется None или какой-нибудь объект, у которого нет атрибутов
[06:45:59] xryun is now away
[06:53:43] xryun is now online
[06:55:32] singularity: у меня если хоть в одном поле обработки ошибка, то в базу не пишем а перехватываем и пишем в ерор-лог
[06:58:55] xryun is now away
[07:01:23] xryun is now online
[07:06:25] xryun is now away
[07:16:25] xryun is now xa
[07:19:07] xryun is now online
[07:19:18] dicos is now away
[07:19:19] dicos is now away
[07:21:23] Tony is now away
[07:22:24] dicos is now away
[07:22:25] dicos is now online
[07:24:07] xryun is now away
[07:25:09] xryun is now online
[07:30:11] xryun is now away
[07:40:11] xryun is now xa
[07:42:17] xryun is now online
[07:45:13] dicos is now away
[07:45:14] dicos is now away
[07:46:23] Tony is now xa
[07:47:17] xryun is now away
[07:55:23] xryun is now online
[07:57:52] singularity is now offline
[08:01:37] dicos is now away
[08:01:38] dicos is now online
[08:03:52] yugo-salem is now online
[08:05:17] xryun is now away
[08:06:07] xryun is now online
[08:09:11] ambush is now online
[08:12:23] ambush is now offline
[08:12:25] ambush is now online
[08:12:25] ambush is now online
[08:12:28] ambush is now online
[08:12:34] ambush is now online
[08:12:34] ambush is now online
[08:12:35] ambush is now online
[08:12:37] ambush is now online
[08:12:38] ambush is now online
[08:12:46] bw is now Мы уйдём на север, а Маугли съедят.
[08:12:47] xryun is now away
[08:15:24] dicos is now away
[08:15:25] dicos is now away
[08:17:45] xryun is now online
[08:20:54] dicos is now away
[08:20:55] dicos is now online
[08:37:08] bw is now away
[08:39:33] dicos is now offline
[08:39:46] dicos is now online
[08:43:43] levsha is now online
[08:45:09] levsha is now offline
[08:46:43] dicos is now away
[08:46:44] dicos is now away
[09:16:51] blw0rm is now away
[09:16:51] xryun is now online
[09:16:51] Tony is now xa
[09:16:51] singularity1 is now online
[09:16:51] yugo-salem is now online
[09:16:51] bliznezz is now away
[09:16:51] best is now xa
[09:16:51] ds.tihonov is now дома! :)
[09:16:51] deisler is now away
[09:16:51] ambush is now online
[09:16:51] bw is now away
[09:16:51] fuzzy is now away
[09:16:51] AlexZenon is now xa
[09:16:51] magic_pony is now online
[09:16:51] dicos is now away
[09:16:51] : slav0nic установил(а) тему: python.su | Сначала поищи ответ на docs.python.org | Теперь поищи в google.com | Код постить в dumpz.org | Хочешь задать вопрос - просто *задай* его! | Правила написания хорошего кода: http://➡.ws/pep8 | Логи: http://logs.python.su
[09:18:07] best is now online
[09:23:25] levsha is now online
[09:33:47] dicos is now away
[09:33:48] dicos is now online
[09:34:42] ambush is now away
[09:38:04] ambush is now online
[09:54:15] dicos is now away
[09:54:16] dicos is now away
[10:03:53] ambush is now away
[10:04:42] dicos is now away
[10:04:43] dicos is now online
[10:05:29] levsha is now away
[10:08:53] ambush is now online
[10:10:37] levsha is now online
[10:10:45] xryun is now offline
[10:11:34] MAVr is now — Уважаемые пассажиры! Убедительно просим вас не аплодировать экипажу до полной остановки самолета. Спасибо!
[10:17:04] levsha is now offline
[10:18:08] levsha is now online
[10:20:06] levsha is now offline
[10:21:12] levsha is now online
[10:25:02] levsha is now offline
[10:25:07] dicos is now away
[10:25:08] dicos is now away
[10:26:02] levsha is now online
[10:31:24] xryun is now online
[10:34:19] xryun is now away
[10:36:35] огыешсук is now online
[10:37:49] xryun is now online
[10:39:04] levsha is now away
[10:47:16] mrDoctorWho is now online
[10:59:13] levsha is now xa
[11:04:35] fuzzy is now away
[11:06:16] dicos is now away
[11:06:17] dicos is now online
[11:08:17] fuzzy is now away
[11:08:37] ambush is now away
[11:08:58] ambush is now online
[11:11:31] dicos is now away
[11:11:33] dicos is now away
[11:12:33] aries.ua is now Угрозы, насмешки, короны примеряют пешки,
Уколы их метки, но все они марионетки.
Эй, куклы, берите, ешьте меня - вот он я!
[11:12:33] aries.ua is now Угрозы, насмешки, короны примеряют пешки,
Уколы их метки, но все они марионетки.
Эй, куклы, берите, ешьте меня - вот он я!
[11:13:02] aries.ua is now Угрозы, насмешки, короны примеряют пешки,
Уколы их метки, но все они марионетки.
Эй, куклы, берите, ешьте меня - вот он я!
[11:18:05] aries.ua is now Угрозы, насмешки, короны примеряют пешки,
Уколы их метки, но все они марионетки.
Эй, куклы, берите, ешьте меня - вот он я!
[11:23:08] aries.ua is now Угрозы, насмешки, короны примеряют пешки,
Уколы их метки, но все они марионетки.
Эй, куклы, берите, ешьте меня - вот он я!
[11:28:10] aries.ua is now Угрозы, насмешки, короны примеряют пешки,
Уколы их метки, но все они марионетки.
Эй, куклы, берите, ешьте меня - вот он я!
[11:29:22] fuzzy is now online
[11:33:12] aries.ua is now Угрозы, насмешки, короны примеряют пешки,
Уколы их метки, но все они марионетки.
Эй, куклы, берите, ешьте меня - вот он я!
[11:35:07] bliznezz is now away
[11:35:08] bliznezz is now online
[11:36:04] fuzzy is now away
[11:36:12] ambush is now away
[11:37:19] xryun is now away
[11:38:14] aries.ua is now Угрозы, насмешки, короны примеряют пешки,
Уколы их метки, но все они марионетки.
Эй, куклы, берите, ешьте меня - вот он я!
[11:43:16] aries.ua is now Угрозы, насмешки, короны примеряют пешки,
Уколы их метки, но все они марионетки.
Эй, куклы, берите, ешьте меня - вот он я!
[11:45:16] ambush is now online
[11:46:08] огыешсук is now offline
[11:47:19] xryun is now xa
[11:48:18] aries.ua is now Угрозы, насмешки, короны примеряют пешки,
Уколы их метки, но все они марионетки.
Эй, куклы, берите, ешьте меня - вот он я!
[11:52:06] mishok13 is now online
[11:53:20] aries.ua is now Угрозы, насмешки, короны примеряют пешки,
Уколы их метки, но все они марионетки.
Эй, куклы, берите, ешьте меня - вот он я!
[11:54:05] xryun is now online
[11:54:51] fuzzy is now online
[11:58:22] aries.ua is now Угрозы, насмешки, короны примеряют пешки,
Уколы их метки, но все они марионетки.
Эй, куклы, берите, ешьте меня - вот он я!
[12:00:53] fuzzy is now offline
[12:03:24] aries.ua is now Угрозы, насмешки, короны примеряют пешки,
Уколы их метки, но все они марионетки.
Эй, куклы, берите, ешьте меня - вот он я!
[12:04:58] dicos is now away
[12:04:59] dicos is now online
[12:08:26] aries.ua is now Угрозы, насмешки, короны примеряют пешки,
Уколы их метки, но все они марионетки.
Эй, куклы, берите, ешьте меня - вот он я!
[12:11:35] mishok13 is now away
[12:13:27] aries.ua is now Угрозы, насмешки, короны примеряют пешки,
Уколы их метки, но все они марионетки.
Эй, куклы, берите, ешьте меня - вот он я!
[12:17:34] xryun is now online
[12:18:23] xryun is now Не шалю, никого не трогаю, починяю примус
[12:18:29] aries.ua is now Угрозы, насмешки, короны примеряют пешки,
Уколы их метки, но все они марионетки.
Эй, куклы, берите, ешьте меня - вот он я!
[12:21:35] mishok13 is now xa
[12:22:49] mishok13 is now online
[12:23:31] aries.ua is now Угрозы, насмешки, короны примеряют пешки,
Уколы их метки, но все они марионетки.
Эй, куклы, берите, ешьте меня - вот он я!
[12:24:47] ambush is now away
[12:27:39] bliznezz is now away
[12:27:40] bliznezz is now away
[12:28:33] aries.ua is now Угрозы, насмешки, короны примеряют пешки,
Уколы их метки, но все они марионетки.
Эй, куклы, берите, ешьте меня - вот он я!
[12:33:35] aries.ua is now Угрозы, насмешки, короны примеряют пешки,
Уколы их метки, но все они марионетки.
Эй, куклы, берите, ешьте меня - вот он я!
[12:34:43] ambush is now xa
[12:36:33] ambush is now online
[12:37:27] bliznezz is now online
[12:38:32] xryun is now away
[12:38:37] aries.ua is now Угрозы, насмешки, короны примеряют пешки,
Уколы их метки, но все они марионетки.
Эй, куклы, берите, ешьте меня - вот он я!
[12:38:56] xryun is now Не шалю, никого не трогаю, починяю примус
[12:41:28] fuzzy is now online
[12:41:33] ambush is now away
[12:43:39] aries.ua is now Угрозы, насмешки, короны примеряют пешки,
Уколы их метки, но все они марионетки.
Эй, куклы, берите, ешьте меня - вот он я!
[12:44:43] fuzzy is now offline
[12:47:48] best is now xa
[12:48:40] aries.ua is now Угрозы, насмешки, короны примеряют пешки,
Уколы их метки, но все они марионетки.
Эй, куклы, берите, ешьте меня - вот он я!
[12:51:33] ambush is now xa
[12:53:42] aries.ua is now Угрозы, насмешки, короны примеряют пешки,
Уколы их метки, но все они марионетки.
Эй, куклы, берите, ешьте меня - вот он я!
[12:54:43] aries.ua is now away
[12:54:43] aries.ua is now away
[12:57:12] slav0nic is now online
[12:58:44] aries.ua is now away
[13:00:27] ambush is now online
[13:03:45] aries.ua is now away
[13:04:14] xryun is now away
[13:04:31] bliznezz is now away
[13:04:33] bliznezz is now away
[13:04:53] mishok13 is now away
[13:06:56] xryun is now Не шалю, никого не трогаю, починяю примус
[13:07:23] dicos is now offline
[13:08:47] aries.ua is now away
[13:09:07] bliznezz is now away
[13:09:08] bliznezz is now online
[13:13:49] aries.ua is now away
[13:13:49] nmk is now online
[13:14:14] xryun is now away
[13:14:32] xryun is now Не шалю, никого не трогаю, починяю примус
[13:14:53] mishok13 is now xa
[13:18:51] aries.ua is now away
[13:22:59] best is now online
[13:23:53] aries.ua is now away
[13:28:04] xryun is now away
[13:28:40] xryun is now Не шалю, никого не трогаю, починяю примус
[13:28:54] aries.ua is now away
[13:33:56] aries.ua is now away
[13:35:40] xryun is now away
[13:38:28] xryun is now Не шалю, никого не трогаю, починяю примус
[13:38:57] aries.ua is now away
[13:43:59] aries.ua is now away
[13:44:43] mishok13 is now online
[13:49:00] aries.ua is now away
[13:54:02] aries.ua is now away
[13:58:36] mrDoctorWho is now away
[13:59:04] aries.ua is now away
[14:01:37] ambush is now away
[14:02:17] ambush is now online
[14:04:06] aries.ua is now away
[14:07:17] ambush is now away
[14:09:08] aries.ua is now away
[14:11:14] xryun is now away
[14:14:10] aries.ua is now away
[14:14:53] levsha is now online
[14:16:58] ambush is now online
[14:18:36] mrDoctorWho is now xa
[14:19:11] aries.ua is now away
[14:20:24] xryun is now Не шалю, никого не трогаю, починяю примус
[14:24:13] aries.ua is now away
[14:27:39] bliznezz is now away
[14:27:40] bliznezz is now away
[14:29:15] aries.ua is now away
[14:29:38] xryun is now away
[14:29:46] xryun is now Не шалю, никого не трогаю, починяю примус
[14:34:17] aries.ua is now away
[14:38:08] xryun is now away
[14:38:15] mrDoctorWho is now online
[14:39:18] aries.ua is now away
[14:39:52] xryun is now Не шалю, никого не трогаю, починяю примус
[14:42:57] AlexZenon is now online
[14:44:20] aries.ua is now away
[14:49:22] aries.ua is now away
[14:54:24] aries.ua is now away
[14:59:26] aries.ua is now away
[15:00:24] xryun is now offline
[15:02:45] mishok13 is now away
[15:04:28] aries.ua is now away
[15:09:32] aries.ua is now away
[15:12:45] mishok13 is now xa
[15:14:36] aries.ua is now away
[15:18:00] bliznezz is now away
[15:18:01] bliznezz is now online
[15:19:38] aries.ua is now away
[15:24:40] aries.ua is now away
[15:25:17] mishok13 is now online
[15:26:00] bw is now xa
[15:28:51] ambush is now away
[15:29:41] aries.ua is now away
[15:29:55] ambush is now online
[15:30:24] slav0nic is now offline
[15:32:00] blw0rm is now offline
[15:34:43] aries.ua is now away
[15:35:51] Tony is now online
[15:39:45] aries.ua is now away
[15:44:47] aries.ua is now away
[15:49:49] aries.ua is now away
[15:54:51] aries.ua is now away
[15:59:53] aries.ua is now away
[16:00:27] remo is now I'm available
[16:02:43] emese is now online
[16:04:55] aries.ua is now away
[16:09:57] aries.ua is now away
[16:14:03] mishok13 is now away
[16:14:58] aries.ua is now away
[16:20:00] aries.ua is now away
[16:21:23] gigimon is now online
[16:24:03] mishok13 is now xa
[16:25:02] aries.ua is now away
[16:30:04] aries.ua is now away
[16:31:51] mishok13 is now online
[16:31:59] remo is now offline
[16:35:07] aries.ua is now away
[16:40:09] aries.ua is now away
[16:40:44] mishok13 is now away
[16:45:11] aries.ua is now away
[16:49:01] dicos is now online
[16:50:12] aries.ua is now away
[16:50:44] mishok13 is now xa
[16:52:56] slav0nic is now online
[16:55:14] aries.ua is now away
[16:59:16] opka is now online
[16:59:56] opka: второй вариант читабельней
[17:00:02] opka: если еще аткуально :)
[17:00:16] aries.ua is now away
[17:00:41] opka: у кого-то есть примеры регеров с grablib ?
[17:01:24] ambush is now offline
[17:03:24] opka: я нагуглил какой-то реггер для яндекса, но код ужасен. :)
[17:03:36] dicos is now offline
[17:05:18] aries.ua is now away
[17:09:31] gigimon is now offline
[17:10:20] aries.ua is now away
[17:10:56] gigimon is now online
[17:15:11] ambush is now online
[17:15:22] aries.ua is now away
[17:17:59] slav0nic is now offline
[17:20:24] aries.ua is now away
[17:25:01] opka: блин, у граблиба документация не поспевает за релизами :))
[17:25:26] aries.ua is now away
[17:27:32] mishok13 is now online
[17:29:03] levsha is now away
[17:29:35] levsha is now online
[17:30:28] aries.ua is now away
[17:33:09] emese is now away
[17:33:11] emese is now away
[17:33:21] ambush is now offline
[17:34:22] emese is now away
[17:34:23] emese is now online
[17:35:29] aries.ua is now away
[17:40:31] aries.ua is now away
[17:41:42] slav0nic is now online
[17:42:58] dicos is now online
[17:43:21] singularity is now online
[17:44:01] singularity: opka: покажи что нашел
[17:44:10] mishok13 is now away
[17:44:54] mishok13 is now online
[17:45:33] aries.ua is now away
[17:45:47] singularity: а в чем проблема ? ты там почту в хендлере или делаешь запрос к антигейту делаешь ?
[17:50:35] aries.ua is now away
[17:50:36] MAVr is now offline
[17:55:38] aries.ua is now away
[17:56:31] dicos is now offline
[17:56:48] levsha is now away
[18:00:40] aries.ua is now away
[18:01:16] slav0nic is now offline
[18:01:18] slav0nic is now online
[18:01:27] slav0nic is now online
[18:01:49] огыешсук is now online
[18:02:02] yugo-salem is now online
[18:02:20] levsha is now online
[18:03:39] best is now xa
[18:05:42] aries.ua is now away
[18:10:44] aries.ua is now away
[18:13:40] slav0nic is now away
[18:15:46] aries.ua is now away
[18:17:10] slav0nic is now online
[18:19:31] blw0rm is now away
[18:20:00] remo is now I'm available
[18:20:42] levsha is now away
[18:20:48] aries.ua is now away
[18:25:50] aries.ua is now away
[18:26:25] blw0rm is now offline
[18:26:49] blw0rm is now away
[18:27:28] opka is now offline
[18:30:34] yugo-salem is now online
[18:30:37] огыешсук is now away
[18:30:40] огыешсук is now away
[18:30:52] aries.ua is now away
[18:32:10] yugo-salem is now online
[18:34:46] singularity: а можете тупому объяснить в чем прикол mongoengine ?
[18:35:54] aries.ua is now away
[18:38:09] singularity: вроде как на обычная бд просто монго под капотом
[18:38:25] slav0nic is now offline
[18:38:26] slav0nic is now online
[18:38:27] slav0nic is now online
[18:38:30] slav0nic is now online
[18:39:09] огыешсук is now online
[18:39:09] огыешсук is now online
[18:40:53] levsha is now xa
[18:40:57] aries.ua is now away
[18:44:40] mishok13 is now away
[18:45:59] aries.ua is now away
[18:50:05] Tony is now away
[18:51:01] aries.ua is now away
[18:51:13] Сволота is now online
[18:54:40] mishok13 is now xa
[18:56:03] aries.ua is now away
[18:57:05] Tony is now online
[18:58:39] yugo-salem is now online
[19:01:06] aries.ua is now away
[19:03:03] yugo-salem is now online
[19:05:04] singularity: а как такое правильно парсить "сегодня 12:08:50" "Ноя. 13, 2013 11:17:30" ?
[19:06:08] aries.ua is now away
[19:09:27] singularity: slav0nic: чем ты генерируешь такие даты ?
[19:10:06] slav0nic: где, что
[19:10:20] mishok13 is now online
[19:10:42] singularity: slav0nic: ну вот же "сегодня 12:08:50" "Ноя. 13, 2013 11:17:30"
[19:10:57] singularity: pytz так не умеет
[19:11:10] aries.ua is now away
[19:11:12] slav0nic: :| ещё раз, где это?
[19:11:37] singularity: на форуме это дата сообщения
[19:11:58] singularity: http://python.su/forum/topic/22963/?page=3#post-120124 вот
[19:11:59] slav0nic: https://bitbucket.org/slav0nic/djangobb/src/0eb6f171b7e20b76961bfe989a22d69e3c945743/djangobb_forum/templatetags/forum_extras.py?at=default#cl-34
[19:12:01] slav0nic: вроде
[19:13:21] singularity: slav0nic: да оно. Спасибо
[19:14:07] slav0nic: может тебя https://docs.djangoproject.com/en/dev/ref/contrib/humanize/#naturaltime устроит
[19:15:03] singularity: я хочу получить время в формате datetime
[19:16:12] aries.ua is now away
[19:21:14] aries.ua is now away
[19:26:16] aries.ua is now away
[19:31:18] aries.ua is now away
[19:36:20] aries.ua is now away
[19:41:22] aries.ua is now away
[19:46:25] aries.ua is now away
[19:46:36] aries.ua is now online
[19:46:36] aries.ua is now online
[19:51:27] aries.ua is now online
[19:56:29] aries.ua is now online
[20:01:31] aries.ua is now online
[20:06:33] aries.ua is now online
[20:07:56] AlexZenon is now offline
[20:07:57] AlexZenon is now online
[20:08:58] s0000p is now online
[20:09:28] s0000p: приветы всем
[20:09:55] singularity: привет
[20:10:18] s0000p: singularity: у меня к тебе вопрос
[20:10:43] singularity: Хочешь задать вопрос - просто *задай* его!
[20:11:36] aries.ua is now online
[20:11:56] s0000p: по поводу каким образом я могу с помощью реквест посмотреть куки выдаваемых мне ресурсом на который я авторизуюсь?
[20:12:07] s0000p: >>> url = 'http://example.com/some/cookie/setting/url' >>> r = requests.get(url) >>> r.cookies['example_cookie_name'] 'example_cookie_value'
[20:12:40] s0000p: как узнать имя example_cookie_name?
[20:14:07] singularity: r.cookies.keys()
[20:16:38] aries.ua is now online
[20:17:50] s0000p: Вос спасиб)
[20:17:54] s0000p: работает
[20:18:39] singularity: s0000p: http://httpbin.org/ вот удобный сайт что-бы с реквестом поиграться
[20:19:59] aries.ua is now away
[20:19:59] aries.ua is now away
[20:20:05] emese is now offline
[20:21:41] aries.ua is now away
[20:21:50] s0000p: возьму на заметку
[20:24:21] gigimon: s0000p: а еще возьми на заметку docs.python.org
[20:26:33] s0000p: так я там читаю))
[20:26:43] aries.ua is now away
[20:26:46] s0000p: просто совсем маленький еще
[20:27:20] yugo-salem is now online
[20:27:35] yugo-salem is now online
[20:27:37] s0000p: прошу прощения за глупые вопросы.. Извиняюсь зарание
[20:31:07] opka is now online
[20:31:46] aries.ua is now away
[20:32:23] Сволота is now offline
[20:32:37] opka is now offline
[20:32:39] yugo-salem is now online
[20:32:39] opka is now online
[20:33:06] yugo-salem is now online
[20:36:49] aries.ua is now away
[20:37:18] aries.ua is now offline
[20:38:42] mrDoctorWho is now away
[20:44:02] s0000p is now online
[20:57:04] singularity is now offline
[20:57:13] best is now online
[20:58:42] mrDoctorWho is now xa
[21:00:25] gigimon is now offline
[21:00:27] mrDoctorWho is now online
[21:06:11] огыешсук is now offline
[21:10:26] mrDoctorWho is now away
[21:13:33] singularity is now online
[21:26:46] nmk is now offline
[21:28:32] best is now away
[21:29:10] mishok13 is now offline
[21:29:53] best is now online
[21:30:16] mrDoctorWho is now online
[21:30:37] yugo-salem is now online
[21:33:50] slav0nic is now offline
[21:34:46] s0000p is now online
[21:34:59] s0000p: l
[21:35:37] yugo-salem is now online
[21:40:39] yugo-salem is now online
[21:42:45] yugo-salem is now online
[22:12:49] blw0rm is now away
[22:12:49] Tony is now online
[22:12:49] singularity1 is now online
[22:12:49] best is now online
[22:12:49] bliznezz is now online
[22:12:49] yugo-salem is now online
[22:12:49] ds.tihonov is now дома! :)
[22:12:49] remo is now I'm available
[22:12:49] mrDoctorWho is now online
[22:12:49] levsha is now xa
[22:12:49] deisler is now away
[22:12:49] s0000p is now online
[22:12:49] bw is now xa
[22:12:49] AlexZenon is now online
[22:12:49] singularity is now online
[22:12:49] opka is now online
[22:12:49] magic_pony is now online
[22:12:49] : slav0nic установил(а) тему: python.su | Сначала поищи ответ на docs.python.org | Теперь поищи в google.com | Код постить в dumpz.org | Хочешь задать вопрос - просто *задай* его! | Правила написания хорошего кода: http://➡.ws/pep8 | Логи: http://logs.python.su
[22:32:31] bliznezz is now away
[22:32:32] bliznezz is now away
[22:38:58] Tony is now offline
[22:42:31] Tony is now online
[22:59:41] MAVr is now — Уважаемые пассажиры! Убедительно просим вас не аплодировать экипажу до полной остановки самолета. Спасибо!
[23:00:02] MAVr is now offline
[23:03:40] remo: а кто сидит на debian ?
[23:04:12] remo: я поставил mysql-python и пробую апдейтить записи в таблице. И как бы не апдейтит, а модуль есть, он загружается и тд
[23:04:17] remo: в чем может быть проблема ?
[23:04:24] remo: может какие-то пакеты нужно поставить ?
[23:07:05] remo: скрипт отрабатывает без ошибок, а вот изменений в базе нет
[23:08:37] singularity: TypeError: load_proxylist() takes at least 3 arguments (3 given)
ну охуеть ! и что мне теперь делать ?
[23:13:41] mrDoctorWho is now offline
[23:18:02] singularity: круто! Два часа писал, запустил и сразу заработало. Я собой горжусь :)
[23:23:41] s0000p: гг
[23:24:33] remo: так а что по моему вопросу-то ?
[23:24:50] remo: внатуре не пишет через питон в базу
[23:24:56] remo: выбирать выбирает, а писать не пишет
[23:25:03] remo: работаю с базой из-под root
[23:25:24] remo: прям трабла. Локально на генте работает, выливаю на вдс и там НЕ работает
[23:26:24] s0000p: singularity: conn = sqlite3.connect('C:\Users\xxxxxx\AppData\Local\Google\Chrome\User Data\Default\Cookies') выдает ошибку SyntaxError: (unicode error) 'unicodeescape' codec can't decode bytes in position 2-3: truncated \UXXXXXXXX escape, как задать данный путь корректно?
[23:28:44] singularity: нуэ
[23:29:07] yugo-salem is now online
[23:29:16] yugo-salem is now online
[23:30:45] s0000p: если куки кидаешь в папку с пай скриптом
[23:31:02] singularity: # coding: utf-8
from __future__ import unicode_literals
f = ur'C:\Users\xxxxxx\AppData\Local\Google\Chrome\User Data\Default\Cookies'.encode('cp1251')
[23:31:23] singularity: нет не ur просто u
[23:31:31] singularity: короче одно или другое
[23:31:47] singularity: бля
[23:31:54] s0000p: ?)
[23:32:20] singularity: f = ur'C:\Users\xxxxxx\AppData\Local\Google\Chrome\User Data\Default\Cookies'.encode('cp1251')
или
from __future__ import unicode_literals
f = r'C:\Users\xxxxxx\AppData\Local\Google\Chrome\User Data\Default\Cookies'.encode('cp1251')
вроде так пробуй
[23:37:39] singularity: ага, нет ошибок...
[23:38:08] s0000p: не не катит
[23:38:16] s0000p: ошибки
[23:38:57] emese is now online
[23:39:09] singularity: какие ошибки ?
[23:40:29] s0000p: from __future__ import unicode_literals
^
SyntaxError: from __future__ imports must occur at the beginning of the file
[23:40:42] s0000p: а сорьки
[23:41:11] s0000p: conn = sqlite3.connect(f)
TypeError: argument 1 must be str, not bytes
[23:44:05] yugo-salem is now online
[23:44:26] yugo-salem is now online
[23:54:28] yugo-salem is now online
[23:56:01] fuzzy is now online