linkchecker || running basic commands

662 Views Asked by At

This is absurd I'm going crazy here.. trying to run a simple command after installing the package (it's a crawler which crawls a given website url and returns all the links under the given parent url) But no matter what I do I cant seem to get the most basic command running.

  • Photo attached.
  • Managed to install the package with the command: "pip install linkchecker".
  • Don't understand the difference between pip and pip3.

And beside the point, why am I getting all of the other errors shown in the console??? console output:

In [1]: linkchecker http://www.example.com/ 
File "C:\Users\etain\AppData\Local\Temp/ipykernel_46464/590413133.py", 
line 1
linkchecker http://www.example.com/
SyntaxError: invalid syntax

linkchecker website for general notes: https://linkchecker.github.io/linkchecker/index.html

Thank you everyone for helping out Screen Photo

1

There are 1 best solutions below

3
On

The basic usage shown on the linked page...

$ linkchecker http://www.example.org/myhomepage/

...is showing you how to run the linkchecker command from a shell prompt (when you see lines in technical documentation beginning with $ that is generally meant to indicate "type this at the shell prompt"). It looks as if you're working with some variant of IPython/Jupyter, which expects Python code.