This is a bug in your code; you seem to want a global variable 's' but you are assigning to it only locally. Or maybe you want it to be an instance variable. Please find a mentor who can help you with your Python skills (maybe try python-list).
On Mon, Sep 29, 2014 at 5:41 AM, Marco Ippolito <[email protected]> wrote: > Hi all, > > I thought it was something related to some "global pattern", a "regex", to > configure within Trollius. > But Victor Stinner (Trollius) told me it's not a Trollius matter, and > suggested me to ask here for some advice. > > I attached the file which, when run, produces the following output: > > time ./crawl_requests.py > http://www.ilsole24ore.com/english-version/front-page.shtml?refresh_ce > DEBUG:trollius:Using selector: EpollSelector ('url to do = ', ' > http://www.ilsole24ore.com/english-version/front-page.shtml?refresh_ce') > ('processing:', ' > http://www.ilsole24ore.com/english-version/front-page.shtml?refresh_ce') > ('...', ' > http://www.ilsole24ore.com/english-version/front-page.shtml?refresh_ce', > 'has error', '"global name \'s\' is not defined"') ('done:', 1, '; ok:', 0) > > Can you please give me some hints? > > Looking forward to your kind help. Kind regards. Marco > -- --Guido van Rossum (python.org/~guido)
