<div dir="ltr"><div>Cześć Maciek :)<br><br></div><div>In general, you can pass extra arguments when you call addCallback(s) or addErrback. They will get passed to the callback.<br><br></div><div>However, as a side note to that code example, do you understand the difference between<br>

<br></div><div>.addCallbacks(cb, eb)<br><br></div><div>and:<br><br></div><div>.addCallback(cb).addErrback(eb)<br><br><br></div><div>and:<br><br></div><div>.addErrback(eb).addCallback(cb)<br><br></div><div>... Also, keep in mind that you only errback when there is an issue setting up the connection. If the server successfully responds with an error (say, a 404 Not Found, or something), the callback will be called with the response object. So, your question doesn't make a lot of sense to me: if the errback gets called, there's not really a response!<br>

<br>Also, if you want to do scraping with Twisted, consider looking at Scrapy, a fully-featured web scraper that uses Twisted internally.<br></div><div><br></div>pozdrawiam<br>lvh<br>​</div>