----BEGIN CLASS---- [14:04] #startclass [14:04] Roll Call [14:04] kumar vipin yadav [14:04] Mohit Bansal [14:04] Robin Schubert [14:04] Samridhi Agarwal [14:05] Gaurav Sitlani [14:06] Vivek Anand [14:07] Harsh Vardhan [14:08] Saptak Sengupta [14:09] Ashwani Kumar Gupta [14:09] Sandesh Patel [14:09] Krishnanand Rai [14:10] Deepika Upadhyay [14:11] Guest37272: change your nick [14:13] Onyinye Madubuko [14:15] Have you all worked on finding which nick said how many lines? [14:15] If yes, then do this next [14:16] https://dgplug.org/irclogs/2017/ [14:16] pass this URL to a function, it will find and download all the log files from there. [14:16] and show us a final report about how spoke how much. [14:16] Use BeautifulSoup4 and requests module for this. [14:25] nick vharsh [14:26] Guest37272: you just forgot the slash, type /nick vharsh [14:28] schubisu: I am trying to change it, I am using Matrix for Android. [14:29] Guest37272: ah, haven't tried that yet, no idea where to configure the settings. But /nick vharsh should do it for the session nevertheless [14:41] Sorry I'm late [14:45] Any question anyone? [14:46] ! [14:47] next [14:47] Do we have to download and save the logs to files and then process them? [14:50] bhavin192: whatever you wish [14:51] sayan, I will download and then process :) [14:53] bhavin192: Yeah, you can even process in cloud [14:55] sayan: its giving me a value error on req.json() [14:56] kushal, sayan: here's my quick solution https://github.com/Schubisu/dgplug/blob/master/problems/20170908_crawl_logs.py have to leave soon, unfortunately [14:56] sitlanigaurav[m]: is the data that you are receiving a json? [14:57] schubisu: doing += 1 should be avoided [14:57] sayan: no [14:57] sayan: oh right, was using legacy code from last problem ;) [14:58] sayan: right I got it [14:59] schubisu, :) [15:07] have a nice evening everyone [15:13] kushal, https://paste.fedoraproject.org/paste/soV0otaTZ~SuWH7hYgUdIg [15:20] ashwanig, we need to see a new directory in the github repo [15:21] is there a session going on? [15:21] kushal, ok [15:21] maxking, yes :) [15:21] maxking, just gave them a problem [15:26] kushal https://paste.fedoraproject.org/paste/puy3elydPZwdKZrK03Uu-w [15:27] kushal, https://github.com/ashwani99/dgplug-python-exercises/blob/master/Problem%2012/solution.py [15:27] san-D, ashwanig, we need to see a new directory in the github repo [15:30] kushal i am getting an error https://paste.fedoraproject.org/paste/mc1K1JMb0VzwuAlwp233gw [15:32] san-D: Are you sure urlopen.read() gives you bytes? [15:33] (that you try to decode to utf-8/) [15:35] maxking: no, i am not sure [15:35] maxking, We have asked people to use requests module. [15:36] kushal: sorry updating [15:38] Well, that error is a good example of why ;) [15:40] kushal, is it possible to terminate printing a long file by user input at any time? [15:42] kushal, ? [15:42] ! [15:46] avik, means? [15:46] next [15:47] is it possible to terminate printing a long file by user input at any time? [15:48] avik: You mean something like Control-C ? [15:48] yes [15:48] but just to terminate that part of the code [15:48] avik, yes [15:48] not the whole program [15:48] avik, you will have to write proper try except block for that [15:49] kushal, can you please help me! I mean explain that to me [15:51] kushal: https://paste.fedoraproject.org/paste/AQ8074qebhSn-kBgbkTvTQ [15:57] kushal: https://github.com/sandeshpatel/summer-training/blob/master/get_logs.py [16:05] avik, https://docs.python.org/3/library/exceptions.html#KeyboardInterrupt [16:05] san-D, I will execute the code later. [16:10] everyone else, please update your code in the github repo [16:10] Roll Call [16:10] kumar vipin yadav [16:11] Ashwani Kumar Gupta [16:11] Gaurav Sitlani [16:11] Deepika Upadhyay ----END CLASS----