Hi,

I have a file unittest.py with the content:

from scrapy import cmdline

cmdline.execute(["scrapy", "check", "ForeignPrincipals"])


When I run it, it gives error:

PS E:\work\gp> python unittest.py
Scrapy 1.2.0 - project: faraScrape

Unknown command: check

Use "scrapy" to see available commands


Although scrapy has check support 
PS E:\work\gp\faraScrape> scrapy
Scrapy 1.2.0 - project: faraScrape

Usage:
  scrapy <command> [options] [args]

Available commands:
  bench         Run quick benchmark test
  check         Check spider contracts
  commands
  crawl         Run a spider
  edit          Edit spider
  fetch         Fetch a URL using the Scrapy downloader
  genspider     Generate new spider using pre-defined templates
  list          List available spiders
  parse         Parse URL (using its spider) and print the results
  runspider     Run a self-contained spider (without creating a project)
  settings      Get settings values
  shell         Interactive scraping console
  startproject  Create new project
  version       Print Scrapy version
  view          Open URL in browser, as seen by Scrapy

Use "scrapy <command> -h" to see more info about a command





-- 
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 scrapy-users+unsubscr...@googlegroups.com.
To post to this group, send email to scrapy-users@googlegroups.com.
Visit this group at https://groups.google.com/group/scrapy-users.
For more options, visit https://groups.google.com/d/optout.

Reply via email to