Search code examples
pythoncommand-linesyntax-error

"Cannot find the path specified" when setting up patent crawler


I am trying to set up the wenyalintw patent scraper. I got everything installed. I then go to execute the command cd src main.py and it tells me the system cannot find the path specified.

I tried changing it to cd src "path to main.py" and it tells me the filename, directory name, or volume label syntax is incorrect.

Did I break it? How do I run the scraper?


Solution

  • You're combining two commands. At the end of the Getting Started section, it says to run:

    cd src
    python main.py
    

    These are two separate commands. The first changes the current working directory to the src directory, which contains a file named main.py. After doing that, the second command runs the file main.py.