siddharthadr's Blog

Weekly Check-in #2

siddharthadr
Published: 06/14/2021

Weather's just great here now, with the Monsoon arriving here. I can now enjoy the rains while sipping coffee and coding for GSoC with some cozy tunes to go along with.

1. What did you do this week?
A. So the ItemChecker class that I proposed has been included in the codebase with the appropriate modifications in FeedExport, so that it can use those filter classes. I pushed the code and created a draft PR. It can be accessed here: #5178. My mentor left some feedback which I agreed with.

2. What is coming up next?
A. I will look into mentor's feedback and improve the code. After that I'll continue with adding tests and documentations.

3. Did you get stuck anywhere?
A. I did once got stuck when I was manually testing the new implementation. I had actually added a class instance attribute called item_classes to ItemChecker class which I intended to be changed for every Feed slot. The problem I was facing was whenever I changed any one of the item_classes attribute it reflected on other instance's attribute as well. The problem was quite trivial actually and I should have known why it was happening. The reason why it was happening was simply because class attributes are shared amongst all the classes. And not only that I also learned about how default parameter values worked in Python which explains why class attributes work the way they do. For the curious, follow this Stackoverflow thread to understand more about default parameter values in Python.

View Blog Post

Weekly Check-in #1

siddharthadr
Published: 06/07/2021

Alright then as this is the first ever post for GSoC let me introduce myself and what I'm doing. My name is D R Siddhartha, friends call me DR(yeah those two letters). I like running and hiking(hopefully I get to hike Iceland one day). I'll be working on Scrapy, a web-crawling framework. Specifically I'll be working on its Feed features, adding enhancements.

Now about the 3 mandatory questions:
1. What did you do this week?
A. I started the week by getting a vaccine shot. The side effects manifested the next day and was horrendous. So I had to delay the scheduled meeting. But me and my mentor have already been discussing on the API designs for the enhancements. We made the discussions public in Github so other people can discuss as well. The discussions are available here: #5168, #5161 and #5169.

2. What is coming up next?
A. The coding phase starts now. I'll be starting my work on the first of the 3 features that I'll be implementing - Item Filters. Some API discussions have already been done. So now the implementation work starts.

3. Did you get stuck anywhere?
A. Not so far.

View Blog Post