See the code in the updated answer: http://stackoverflow.com/a/19601182/140510
You have to change the import in the custom client context factory to this one: from scrapy.core.downloader.contextfactory import ScrapyClientContextFactory With that it should work without changing the twisted version. On Mon, Jan 27, 2014 at 2:22 PM, Bill Ebeling <[email protected]> wrote: > Sure is. So the best fix would be to upgrade scrapy, then? > > > On Mon, Jan 27, 2014 at 1:18 PM, Rolando Espinoza La Fuente < > [email protected]> wrote: > >> In fact, this was a bug in the answer as it should import >> ScrapyClientContextFactory instead ClientContextFactory. I've already fixed >> that. >> >> Funny thing that it worked with some twisted versions. >> >> >> On Mon, Jan 27, 2014 at 2:03 PM, Rolando Espinoza La Fuente < >> [email protected]> wrote: >> >>> So far I've tested, fetching your website works with twisted 10.2.0 + >>> scrapy 0.18.2. >>> With latest scrapy works with twisted 11.0.0, it fails up to latest >>> 13.1.0. >>> >>> >>> On Mon, Jan 27, 2014 at 12:08 PM, Bill Ebeling <[email protected]>wrote: >>> >>>> I hadn't seen this before.. >>>> >>>> Scrapy : 0.18.2 >>>> lxml : 3.2.3.0 >>>> libxml2 : 2.8.0 >>>> Twisted : 13.1.0 >>>> Python : 2.7.3 (default, Sep 26 2013, 16:35:25) - [GCC 4.7.2] >>>> Platform: Linux-3.5.0-45-generic-x86_64-with-Ubuntu-12.10-quantal >>>> >>>> -- >>>> You received this message because you are subscribed to the Google >>>> Groups "scrapy-users" group. >>>> To unsubscribe from this group and stop receiving emails from it, send >>>> an email to [email protected]. >>>> To post to this group, send email to [email protected]. >>>> Visit this group at http://groups.google.com/group/scrapy-users. >>>> For more options, visit https://groups.google.com/groups/opt_out. >>>> >>> >>> >> -- >> You received this message because you are subscribed to a topic in the >> Google Groups "scrapy-users" group. >> To unsubscribe from this topic, visit >> https://groups.google.com/d/topic/scrapy-users/XiV7jazev8c/unsubscribe. >> To unsubscribe from this group and all its topics, send an email to >> [email protected]. >> >> To post to this group, send email to [email protected]. >> Visit this group at http://groups.google.com/group/scrapy-users. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > -- > You received this message because you are subscribed to the Google Groups > "scrapy-users" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/scrapy-users. > For more options, visit https://groups.google.com/groups/opt_out. > -- You received this message because you are subscribed to the Google Groups "scrapy-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/scrapy-users. For more options, visit https://groups.google.com/groups/opt_out.
