Advertisement
Guest User

scrapy

a guest
May 25th, 2018
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. def main():
  2. process = CrawlerProcess({
  3. 'USER_AGENT': 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1)'
  4. })
  5. process.crawl(LinkSpider)
  6. process.crawl(PagingSpider)
  7. process.start()
  8.  
  9. if __name__ == '__main__':
  10. main()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement