python - How can I change User_AGENT in scrapy spider? -
i wrote spider ip http://ip.42.pl/raw via proxy. first spider. want change user_agent. got information tutorial http://blog.privatenode.in/torifying-scrapy-project-on-ubuntu i completed steps tutorial , code. settings.py bot_name = 'checkip' spider_modules = ['checkip.spiders'] newspider_module = 'checkip.spiders' user_agent_list = ['mozilla/5.0 (iphone; cpu iphone os 5_1 mac os x) applewebkit/534.46 (khtml, gecko) version/5.1 mobile/9b179 safari/7534.48.3', 'mozilla/5.0 (linux; u; android 4.0.3; ko-kr; lg-l160l build/iml74k) applewebkit/534.30 (khtml, gecko) version/4.0 mobile safari/534.30', 'mozilla/5.0 (linux; u; android 4.0.3; de-ch; htc sensation build/iml74k) applewebkit/534.30 (khtml, gecko) version/4.0 mobile safari/534.30', 'mozilla/5.0 (linux; u; android 2.3; en-us) applewebkit/999+ (khtml, gecko) safari/999.9', 'mozilla/5.0 (linux; u; android 2.3.5; zh-cn; htc_incredibles_s710e build/grj90) applewebki...