feat(cli): Adding two new commands (uncurl/curl2fetcher)
This commit is contained in:
+3
-3
@@ -1,12 +1,10 @@
|
||||
import os
|
||||
import subprocess
|
||||
import sys
|
||||
import subprocess
|
||||
from pathlib import Path
|
||||
|
||||
import click
|
||||
|
||||
from scrapling.core.shell import CustomShell
|
||||
|
||||
|
||||
def get_package_dir():
|
||||
return Path(os.path.dirname(__file__))
|
||||
@@ -73,6 +71,8 @@ def install(force):
|
||||
help="Log level (default: DEBUG)",
|
||||
)
|
||||
def shell(code, level):
|
||||
from scrapling.core.shell import CustomShell
|
||||
|
||||
console = CustomShell(code=code, log_level=level)
|
||||
console.start()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user