section-engineering-education / engineering-education

“Section's Engineering Education (EngEd) Program is dedicated to offering a unique quality community experience for computer science university students."
Apache License 2.0
364 stars 890 forks source link

Working with requests and responses in scrapy #4988

Closed mbuthiajn closed 2 years ago

mbuthiajn commented 2 years ago

Proposed title of article

Working with requests and responses in scrapy

Proposed article introduction

Scrapy uses Request and Response objects for crawling web sites. Typically, Request objects are generated in the spiders and pass across the system until they reach the Downloader, which executes the request and returns a Response object which travels back to the spider that issued the request.

Both Request and Response classes have subclasses which add functionality not required in the base classes. These are going to be described in Request subclasses and Response subclasses during the course of this article.

Key takeaways

1.Request objects 2.Passing additional data to callback functions 3.Accessing additional data in errback functions 4.Request.meta special keys 5.Stopping the download of a Response 6.Request subclasses

  1. Conclusion

Article quality

I plan to use examples to illustrate requests and responses in scrapy and its application in Python. I will also use a language that a beginner will understand and still remain relevant to seasoned programmers.

References

N/A

louisefindlay23 commented 2 years ago

Hi, @mbuthiajn. There are many similar articles on this topic. Can you tell me what unique content you will cover or unique perspective you will add.

WanjaMIKE commented 2 years ago

I think this topic does not add much value than what is already covered in the official documentation. Feel free to suggest another topic. Thanks